Class EvaluationInstance.DeprecatedAgentData.AgentEvent (3.100.0)

public static final class EvaluationInstance.DeprecatedAgentData.AgentEvent extends GeneratedMessage implements EvaluationInstance.DeprecatedAgentData.AgentEventOrBuilder

A single event in the execution trace.

Protobuf type google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > EvaluationInstance.DeprecatedAgentData.AgentEvent

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 EvaluationInstance.DeprecatedAgentData.AgentEvent getDefaultInstance()
Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent

getDescriptor()

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

newBuilder()

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

newBuilder(EvaluationInstance.DeprecatedAgentData.AgentEvent prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<EvaluationInstance.DeprecatedAgentData.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.

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.

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).

.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).

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

Returns
Type Description
ContentOrBuilder

getDefaultInstanceForType()

public EvaluationInstance.DeprecatedAgentData.AgentEvent getDefaultInstanceForType()
Returns
Type Description
EvaluationInstance.DeprecatedAgentData.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<EvaluationInstance.DeprecatedAgentData.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.

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).

.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 EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder newBuilderForType()
Returns
Type Description
EvaluationInstance.DeprecatedAgentData.AgentEvent.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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