public final class AgentEvent extends GeneratedMessage implements AgentEventOrBuilder
Represents a single event in the execution trace.
Protobuf type google.cloud.aiplatform.v1beta1.AgentEvent
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
public static final int ACTIVE_TOOLS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
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 |
|
public static final int EVENT_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int STATE_DELTA_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
public static AgentEvent getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static AgentEvent.Builder newBuilder()
public static AgentEvent.Builder newBuilder(AgentEvent prototype)
public static AgentEvent parseDelimitedFrom(InputStream input)
public static AgentEvent parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AgentEvent parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
public static AgentEvent parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AgentEvent parseFrom(ByteString data)
public static AgentEvent parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AgentEvent parseFrom(CodedInputStream input)
public static AgentEvent parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AgentEvent parseFrom(InputStream input)
public static AgentEvent parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AgentEvent parseFrom(ByteBuffer data)
public static AgentEvent parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<AgentEvent> parser()
Methods
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
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 |
|
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 |
|
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];
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
|
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> |
|
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.
|
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];
public AgentEvent getDefaultInstanceForType()
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.
|
public TimestampOrBuilder getEventTimeOrBuilder()
Optional. The timestamp when the event occurred.
.google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL];
public Parser<AgentEvent> getParserForType()
Overrides
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
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.
|
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];
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.
|
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.
|
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.
|
| Returns |
| Type |
Description |
int |
|
Overrides
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public AgentEvent.Builder newBuilderForType()
protected AgentEvent.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public AgentEvent.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides