SessionEvent(mapping=None, *, ignore_unknown_fields=False, **kwargs)An event represents a message from either the user or agent.
Attributes |
|
|---|---|
| Name | Description |
name |
str
Identifier. The resource name of the event. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}/events/{event}.
|
author |
str
Required. The name of the agent that sent the event, or user. |
content |
google.cloud.aiplatform_v1beta1.types.Content
Optional. Content of the event provided by the author. |
invocation_id |
str
Required. The invocation id of the event, multiple events can have the same invocation id. |
actions |
google.cloud.aiplatform_v1beta1.types.EventActions
Optional. Actions executed by the agent. |
timestamp |
google.protobuf.timestamp_pb2.Timestamp
Required. Timestamp when the event was created on client side. |
error_code |
str
Optional. Error code if the response is an error. Code varies by model. |
error_message |
str
Optional. Error message if the response is an error. |
event_metadata |
google.cloud.aiplatform_v1beta1.types.EventMetadata
Optional. Metadata relating to this event. |
raw_event |
google.protobuf.struct_pb2.Struct
Optional. Weakly typed raw event data in proto struct format. |
Methods
SessionEvent
SessionEvent(mapping=None, *, ignore_unknown_fields=False, **kwargs)An event represents a message from either the user or agent.