SessionEvent class final

An event represents a message from either the user or agent.

Inheritance
  • Object
  • ProtoMessage
  • SessionEvent

Constructors

SessionEvent({String name = '', required String author, Content? content, required String invocationId, EventActions? actions, required Timestamp? timestamp, String errorCode = '', String errorMessage = '', EventMetadata? eventMetadata})
SessionEvent.fromJson(Object? j)
factory

Properties

actions EventActions?
Optional. Actions executed by the agent.
final
author String
Required. The name of the agent that sent the event, or user.
final
content Content?
Optional. Content of the event provided by the author.
final
errorCode String
Optional. Error code if the response is an error. Code varies by model.
final
errorMessage String
Optional. Error message if the response is an error.
final
eventMetadata EventMetadata?
Optional. Metadata relating to this event.
final
hashCode int
The hash code for this object.
no setterinherited
invocationId String
Required. The invocation id of the event, multiple events can have the same invocation id.
final
name String
Identifier. The resource name of the event. Format:projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}/sessions/{session}/events/{event}.
final
qualifiedName String
The fully qualified name of this message, i.e., google.protobuf.Duration or google.rpc.ErrorInfo.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
timestamp → Timestamp?
Required. Timestamp when the event was created on client side.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Object
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

fullyQualifiedName → const String