Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class SessionEvent.
An event represents a message from either the user or agent.
Generated from protobuf message google.cloud.aiplatform.v1.SessionEvent
Namespace
Google \ Cloud \ AIPlatform \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Identifier. The resource name of the event. Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}/events/{event}
.
↳ author
string
Required. The name of the agent that sent the event, or user.
↳ content
↳ invocation_id
string
Required. The invocation id of the event, multiple events can have the same invocation id.
↳ actions
↳ timestamp
↳ error_code
string
Optional. Error code if the response is an error. Code varies by model.
↳ error_message
string
Optional. Error message if the response is an error.
↳ event_metadata
↳ raw_event
getName
Identifier. The resource name of the event.
Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}/events/{event}
.
string
setName
Identifier. The resource name of the event.
Format: projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}/events/{event}
.
var
string
$this
getAuthor
Required. The name of the agent that sent the event, or user.
string
setAuthor
Required. The name of the agent that sent the event, or user.
var
string
$this
getContent
Optional. Content of the event provided by the author.
hasContent
clearContent
setContent
Optional. Content of the event provided by the author.
$this
getInvocationId
Required. The invocation id of the event, multiple events can have the same invocation id.
string
setInvocationId
Required. The invocation id of the event, multiple events can have the same invocation id.
var
string
$this
getActions
Optional. Actions executed by the agent.
hasActions
clearActions
setActions
Optional. Actions executed by the agent.
$this
getTimestamp
Required. Timestamp when the event was created on client side.
hasTimestamp
clearTimestamp
setTimestamp
Required. Timestamp when the event was created on client side.
$this
getErrorCode
Optional. Error code if the response is an error. Code varies by model.
string
setErrorCode
Optional. Error code if the response is an error. Code varies by model.
var
string
$this
getErrorMessage
Optional. Error message if the response is an error.
string
setErrorMessage
Optional. Error message if the response is an error.
var
string
$this
getEventMetadata
Optional. Metadata relating to this event.
hasEventMetadata
clearEventMetadata
setEventMetadata
Optional. Metadata relating to this event.
$this
getRawEvent
Optional. Weakly typed raw event data in proto struct format.
hasRawEvent
clearRawEvent
setRawEvent
Optional. Weakly typed raw event data in proto struct format.
$this

