Class AgentEvent (3.100.0)

public final class AgentEvent extends GeneratedMessage implements AgentEventOrBuilder

Represents a single event in the execution trace.

Protobuf type google.cloud.aiplatform.v1beta1.AgentEvent

Implements

AgentEventOrBuilder

Static Fields

ACTIVE_TOOLS_FIELD_NUMBER

public static final int ACTIVE_TOOLS_FIELD_NUMBER
Field Value
Type Description
int

AUTHOR_FIELD_NUMBER

public static final int AUTHOR_FIELD_NUMBER
Field Value
Type Description
int

CONTENT_FIELD_NUMBER

public static final int CONTENT_FIELD_NUMBER
Field Value
Type Description
int

EVENT_TIME_FIELD_NUMBER

public static final int EVENT_TIME_FIELD_NUMBER
Field Value
Type Description
int

STATE_DELTA_FIELD_NUMBER

public static final int STATE_DELTA_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AgentEvent getDefaultInstance()
Returns
Type Description
AgentEvent

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AgentEvent.Builder newBuilder()
Returns
Type Description
AgentEvent.Builder

newBuilder(AgentEvent prototype)

public static AgentEvent.Builder newBuilder(AgentEvent prototype)
Parameter
Name Description
prototype AgentEvent
Returns
Type Description
AgentEvent.Builder

parseDelimitedFrom(InputStream input)

public static AgentEvent parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AgentEvent
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AgentEvent parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentEvent
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AgentEvent parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AgentEvent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AgentEvent parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentEvent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AgentEvent parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AgentEvent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AgentEvent parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentEvent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AgentEvent parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AgentEvent
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AgentEvent parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentEvent
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AgentEvent parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AgentEvent
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AgentEvent parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentEvent
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AgentEvent parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AgentEvent
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AgentEvent parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentEvent
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AgentEvent> parser()
Returns
Type Description
Parser<AgentEvent>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getActiveTools(int index)

public Tool getActiveTools(int index)

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.

repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
Tool

getActiveToolsCount()

public int getActiveToolsCount()

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.

repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getActiveToolsList()

public List<Tool> getActiveToolsList()

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.

repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Tool>

getActiveToolsOrBuilder(int index)

public ToolOrBuilder getActiveToolsOrBuilder(int index)

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.

repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
ToolOrBuilder

getActiveToolsOrBuilderList()

public List<? extends ToolOrBuilder> getActiveToolsOrBuilderList()

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.

repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1beta1.ToolOrBuilder>

getAuthor()

public String getAuthor()

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

optional string author = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The author.

getAuthorBytes()

public ByteString getAuthorBytes()

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

optional string author = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for author.

getContent()

public Content getContent()

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

optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Content

The content.

getContentOrBuilder()

public ContentOrBuilder getContentOrBuilder()

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

optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ContentOrBuilder

getDefaultInstanceForType()

public AgentEvent getDefaultInstanceForType()
Returns
Type Description
AgentEvent

getEventTime()

public Timestamp getEventTime()

Optional. The timestamp when the event occurred.

.google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Timestamp

The eventTime.

getEventTimeOrBuilder()

public TimestampOrBuilder getEventTimeOrBuilder()

Optional. The timestamp when the event occurred.

.google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TimestampOrBuilder

getParserForType()

public Parser<AgentEvent> getParserForType()
Returns
Type Description
Parser<AgentEvent>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStateDelta()

public Struct getStateDelta()

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.

.google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Struct

The stateDelta.

getStateDeltaOrBuilder()

public StructOrBuilder getStateDeltaOrBuilder()

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.

.google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StructOrBuilder

hasAuthor()

public boolean hasAuthor()

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

optional string author = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the author field is set.

hasContent()

public boolean hasContent()

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

optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the content field is set.

hasEventTime()

public boolean hasEventTime()

Optional. The timestamp when the event occurred.

.google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the eventTime field is set.

hasStateDelta()

public boolean hasStateDelta()

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.

.google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the stateDelta field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AgentEvent.Builder newBuilderForType()
Returns
Type Description
AgentEvent.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected AgentEvent.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AgentEvent.Builder
Overrides

toBuilder()

public AgentEvent.Builder toBuilder()
Returns
Type Description
AgentEvent.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException