SessionEvents(api_client_: google.genai._api_client.BaseApiClient)API documentation for SessionEvents class.
Methods
append
append(
*,
name: str,
author: str,
invocation_id: str,
timestamp: datetime.datetime,
config: typing.Optional[
typing.Union[
vertexai._genai.types.common.AppendAgentEngineSessionEventConfig,
vertexai._genai.types.common.AppendAgentEngineSessionEventConfigDict,
]
] = None
) -> vertexai._genai.types.common.AppendAgentEngineSessionEventResponseAppends Agent Engine session event.
| Parameters | |
|---|---|
| Name | Description |
name |
str
Required. The name of the Agent Engine session to append the event to. Format: |
author |
str
Required. The author of the Agent Engine session event. |
invocation_id |
str
Required. The invocation ID of the Agent Engine session event. |
timestamp |
datetime.datetime
Required. The timestamp of the Agent Engine session event. |
config |
AppendAgentEngineSessionEventConfig
Optional. Additional configurations for appending the Agent Engine session event. |
| Returns | |
|---|---|
| Type | Description |
AppendAgentEngineSessionEventResponse |
The requested Agent Engine session event. |
list
list(
*,
name: str,
config: typing.Optional[
typing.Union[
vertexai._genai.types.common.ListAgentEngineSessionEventsConfig,
vertexai._genai.types.common.ListAgentEngineSessionEventsConfigDict,
]
] = None
) -> typing.Iterator[vertexai._genai.types.common.SessionEvent]Lists Agent Engine session events.
| Parameters | |
|---|---|
| Name | Description |
name |
str
Required. The name of the agent engine to list session events for. |
config |
ListAgentEngineSessionEventsConfig
Optional. The configuration for the session events to list. Currently, the |
| Returns | |
|---|---|
| Type | Description |
Iterator[SessionEvent] |
An iterable of session events. |