Class AgentConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AgentConfig.Builder>
com.google.cloud.aiplatform.v1beta1.AgentConfig.Builder
- All Implemented Interfaces:
AgentConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AgentConfig
public static final class AgentConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AgentConfig.Builder>
implements AgentConfigOrBuilder
Represents configuration for an Agent.Protobuf type
google.cloud.aiplatform.v1beta1.AgentConfig-
Method Summary
Modifier and TypeMethodDescriptionaddAllSubAgents(Iterable<String> values) Optional.addAllTools(Iterable<? extends Tool> values) Optional.addSubAgents(String value) Optional.addSubAgentsBytes(com.google.protobuf.ByteString value) Optional.Optional.addTools(int index, Tool.Builder builderForValue) Optional.Optional.addTools(Tool.Builder builderForValue) Optional.Optional.addToolsBuilder(int index) Optional.build()clear()Required.Optional.Optional.Optional.Optional.Optional.Required.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.getSubAgents(int index) Optional.com.google.protobuf.ByteStringgetSubAgentsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.getTools(int index) Optional.getToolsBuilder(int index) Optional.Optional.intOptional.Optional.getToolsOrBuilder(int index) Optional.List<? extends ToolOrBuilder>Optional.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(AgentConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeTools(int index) Optional.setAgentId(String value) Required.setAgentIdBytes(com.google.protobuf.ByteString value) Required.setAgentType(String value) Optional.setAgentTypeBytes(com.google.protobuf.ByteString value) Optional.setDescription(String value) Optional.setDescriptionBytes(com.google.protobuf.ByteString value) Optional.setInstruction(String value) Optional.setInstructionBytes(com.google.protobuf.ByteString value) Optional.setSubAgents(int index, String value) Optional.Optional.setTools(int index, Tool.Builder builderForValue) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<AgentConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<AgentConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<AgentConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AgentConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AgentConfig.Builder>
-
mergeFrom
public AgentConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AgentConfig.Builder>- Throws:
IOException
-
hasAgentId
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];- Specified by:
hasAgentIdin interfaceAgentConfigOrBuilder- Returns:
- Whether the agentId field is set.
-
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];- Specified by:
getAgentIdin interfaceAgentConfigOrBuilder- Returns:
- The agentId.
-
getAgentIdBytes
public com.google.protobuf.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];- Specified by:
getAgentIdBytesin interfaceAgentConfigOrBuilder- Returns:
- The bytes for agentId.
-
setAgentId
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];- Parameters:
value- The agentId to set.- Returns:
- This builder for chaining.
-
clearAgentId
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:
- This builder for chaining.
-
setAgentIdBytes
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];- Parameters:
value- The bytes for agentId to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getAgentTypein interfaceAgentConfigOrBuilder- Returns:
- The agentType.
-
getAgentTypeBytes
public com.google.protobuf.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];- Specified by:
getAgentTypeBytesin interfaceAgentConfigOrBuilder- Returns:
- The bytes for agentType.
-
setAgentType
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];- Parameters:
value- The agentType to set.- Returns:
- This builder for chaining.
-
clearAgentType
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:
- This builder for chaining.
-
setAgentTypeBytes
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];- Parameters:
value- The bytes for agentType to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getDescriptionin interfaceAgentConfigOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.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];- Specified by:
getDescriptionBytesin interfaceAgentConfigOrBuilder- Returns:
- The bytes for description.
-
setDescription
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];- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
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:
- This builder for chaining.
-
setDescriptionBytes
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];- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getInstructionin interfaceAgentConfigOrBuilder- Returns:
- The instruction.
-
getInstructionBytes
public com.google.protobuf.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];- Specified by:
getInstructionBytesin interfaceAgentConfigOrBuilder- Returns:
- The bytes for instruction.
-
setInstruction
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];- Parameters:
value- The instruction to set.- Returns:
- This builder for chaining.
-
clearInstruction
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:
- This builder for chaining.
-
setInstructionBytes
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];- Parameters:
value- The bytes for instruction to set.- Returns:
- This builder for chaining.
-
getToolsList
Optional. The list of tools available to this agent.
repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getToolsListin interfaceAgentConfigOrBuilder
-
getToolsCount
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];- Specified by:
getToolsCountin interfaceAgentConfigOrBuilder
-
getTools
Optional. The list of tools available to this agent.
repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getToolsin interfaceAgentConfigOrBuilder
-
setTools
Optional. The list of tools available to this agent.
repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; -
setTools
Optional. The list of tools available to this agent.
repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; -
addTools
Optional. The list of tools available to this agent.
repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; -
addTools
Optional. The list of tools available to this agent.
repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; -
addTools
Optional. The list of tools available to this agent.
repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; -
addTools
Optional. The list of tools available to this agent.
repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; -
addAllTools
Optional. The list of tools available to this agent.
repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; -
clearTools
Optional. The list of tools available to this agent.
repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; -
removeTools
Optional. The list of tools available to this agent.
repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getToolsBuilder
Optional. The list of tools available to this agent.
repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getToolsOrBuilder
Optional. The list of tools available to this agent.
repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getToolsOrBuilderin interfaceAgentConfigOrBuilder
-
getToolsOrBuilderList
Optional. The list of tools available to this agent.
repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getToolsOrBuilderListin interfaceAgentConfigOrBuilder
-
addToolsBuilder
Optional. The list of tools available to this agent.
repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; -
addToolsBuilder
Optional. The list of tools available to this agent.
repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getToolsBuilderList
Optional. The list of tools available to this agent.
repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; -
getSubAgentsList
public com.google.protobuf.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];- Specified by:
getSubAgentsListin interfaceAgentConfigOrBuilder- Returns:
- A list containing the subAgents.
-
getSubAgentsCount
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];- Specified by:
getSubAgentsCountin interfaceAgentConfigOrBuilder- Returns:
- The count of subAgents.
-
getSubAgents
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];- Specified by:
getSubAgentsin interfaceAgentConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The subAgents at the given index.
-
getSubAgentsBytes
public com.google.protobuf.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];- Specified by:
getSubAgentsBytesin interfaceAgentConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the subAgents at the given index.
-
setSubAgents
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];- Parameters:
index- The index to set the value at.value- The subAgents to set.- Returns:
- This builder for chaining.
-
addSubAgents
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];- Parameters:
value- The subAgents to add.- Returns:
- This builder for chaining.
-
addAllSubAgents
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];- Parameters:
values- The subAgents to add.- Returns:
- This builder for chaining.
-
clearSubAgents
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:
- This builder for chaining.
-
addSubAgentsBytes
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];- Parameters:
value- The bytes of the subAgents to add.- Returns:
- This builder for chaining.
-