Vertex AI v1beta1 API - Class AgentEvent (1.0.0-beta77)

public sealed class AgentEvent : IMessage<AgentEvent>, IEquatable<AgentEvent>, IDeepCloneable<AgentEvent>, IBufferMessage, IMessage

Reference documentation and code samples for the Vertex AI v1beta1 API class AgentEvent.

Represents a single event in the execution trace.

Inheritance

object > AgentEvent

Namespace

Google.Cloud.AIPlatform.V1Beta1

Assembly

Google.Cloud.AIPlatform.V1Beta1.dll

Constructors

AgentEvent()

public AgentEvent()

AgentEvent(AgentEvent)

public AgentEvent(AgentEvent other)
Parameter
Name Description
other AgentEvent

Properties

ActiveTools

public RepeatedField<Tool> ActiveTools { get; }

Optional. The list of tools that were active/available to the agent at the time of this event. This overrides the AgentConfig.tools if set.

Property Value
Type Description
RepeatedFieldTool

Author

public string Author { get; set; }

Required. The ID of the agent or entity that generated this event. Use "user" to denote events generated by the end-user.

Property Value
Type Description
string

Content

public Content Content { get; set; }

Required. The content of the event (e.g., text response, tool call, tool response).

Property Value
Type Description
Content

EventTime

public Timestamp EventTime { get; set; }

Optional. The timestamp when the event occurred.

Property Value
Type Description
Timestamp

HasAuthor

public bool HasAuthor { get; }

Gets whether the "author" field is set

Property Value
Type Description
bool

StateDelta

public Struct StateDelta { get; set; }

Optional. The change in the session state caused by this event. This is a key-value map of fields that were modified or added by the event.

Property Value
Type Description
Struct