public final class AgentConfig extends GeneratedMessage implements AgentConfigOrBuilder
Represents configuration for an Agent.
Protobuf type google.cloud.aiplatform.v1beta1.AgentConfig
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 AGENT_ID_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int AGENT_TYPE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int DESCRIPTION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int INSTRUCTION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int SUB_AGENTS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int TOOLS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
public static AgentConfig getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static AgentConfig.Builder newBuilder()
public static AgentConfig.Builder newBuilder(AgentConfig prototype)
public static AgentConfig parseDelimitedFrom(InputStream input)
public static AgentConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AgentConfig parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
public static AgentConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AgentConfig parseFrom(ByteString data)
public static AgentConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AgentConfig parseFrom(CodedInputStream input)
public static AgentConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AgentConfig parseFrom(InputStream input)
public static AgentConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AgentConfig parseFrom(ByteBuffer data)
public static AgentConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<AgentConfig> parser()
Methods
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
public String getAgentId()
Required. Unique identifier of the agent.
This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
the sub_agents field. It must be unique within the agents map.
optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
String |
The agentId.
|
public ByteString getAgentIdBytes()
Required. Unique identifier of the agent.
This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
the sub_agents field. It must be unique within the agents map.
optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
ByteString |
The bytes for agentId.
|
public String getAgentType()
Optional. The type or class of the agent (e.g., "LlmAgent", "RouterAgent",
"ToolUseAgent"). Useful for the autorater to understand the expected
behavior of the agent.
string agent_type = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The agentType.
|
public ByteString getAgentTypeBytes()
Optional. The type or class of the agent (e.g., "LlmAgent", "RouterAgent",
"ToolUseAgent"). Useful for the autorater to understand the expected
behavior of the agent.
string agent_type = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for agentType.
|
public AgentConfig getDefaultInstanceForType()
public String getDescription()
Optional. A high-level description of the agent's role and
responsibilities. Critical for evaluating if the agent is routing tasks
correctly.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The description.
|
public ByteString getDescriptionBytes()
Optional. A high-level description of the agent's role and
responsibilities. Critical for evaluating if the agent is routing tasks
correctly.
string description = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for description.
|
public String getInstruction()
Optional. Provides instructions for the LLM model, guiding the agent's
behavior. Can be static or dynamic. Dynamic instructions can contain
placeholders like {variable_name} that will be resolved at runtime using
the AgentEvent.state_delta field.
string instruction = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The instruction.
|
public ByteString getInstructionBytes()
Optional. Provides instructions for the LLM model, guiding the agent's
behavior. Can be static or dynamic. Dynamic instructions can contain
placeholders like {variable_name} that will be resolved at runtime using
the AgentEvent.state_delta field.
string instruction = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for instruction.
|
public Parser<AgentConfig> getParserForType()
Overrides
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
public String getSubAgents(int index)
Optional. The list of valid agent IDs that this agent can delegate to.
This defines the directed edges in the multi-agent system graph topology.
repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
The index of the element to return.
|
| Returns |
| Type |
Description |
String |
The subAgents at the given index.
|
public ByteString getSubAgentsBytes(int index)
Optional. The list of valid agent IDs that this agent can delegate to.
This defines the directed edges in the multi-agent system graph topology.
repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
The index of the value to return.
|
| Returns |
| Type |
Description |
ByteString |
The bytes of the subAgents at the given index.
|
public int getSubAgentsCount()
Optional. The list of valid agent IDs that this agent can delegate to.
This defines the directed edges in the multi-agent system graph topology.
repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
The count of subAgents.
|
public ProtocolStringList getSubAgentsList()
Optional. The list of valid agent IDs that this agent can delegate to.
This defines the directed edges in the multi-agent system graph topology.
repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL];
public Tool getTools(int index)
Optional. The list of tools available to this agent.
repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
| Returns |
| Type |
Description |
Tool |
|
public int getToolsCount()
Optional. The list of tools available to this agent.
repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
int |
|
public List<Tool> getToolsList()
Optional. The list of tools available to this agent.
repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL];
public ToolOrBuilder getToolsOrBuilder(int index)
Optional. The list of tools available to this agent.
repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter |
| Name |
Description |
index |
int
|
public List<? extends ToolOrBuilder> getToolsOrBuilderList()
Optional. The list of tools available to this agent.
repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.aiplatform.v1beta1.ToolOrBuilder> |
|
public boolean hasAgentId()
Required. Unique identifier of the agent.
This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
the sub_agents field. It must be unique within the agents map.
optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
boolean |
Whether the agentId field is set.
|
| Returns |
| Type |
Description |
int |
|
Overrides
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public AgentConfig.Builder newBuilderForType()
protected AgentConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public AgentConfig.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides