Class AgentConfig
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1beta1.AgentConfig
- All Implemented Interfaces:
AgentConfigOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class AgentConfig
extends com.google.protobuf.GeneratedMessage
implements AgentConfigOrBuilder
Represents configuration for an Agent.Protobuf type
google.cloud.aiplatform.v1beta1.AgentConfig- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents configuration for an Agent.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanRequired.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.static AgentConfigOptional.com.google.protobuf.ByteStringOptional.static final com.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.com.google.protobuf.Parser<AgentConfig>intgetSubAgents(int index) Optional.com.google.protobuf.ByteStringgetSubAgentsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.getTools(int index) Optional.intOptional.Optional.getToolsOrBuilder(int index) Optional.List<? extends ToolOrBuilder>Optional.booleanRequired.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic AgentConfig.Builderstatic AgentConfig.BuildernewBuilder(AgentConfig prototype) protected AgentConfig.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static AgentConfigparseDelimitedFrom(InputStream input) static AgentConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AgentConfigparseFrom(byte[] data) static AgentConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AgentConfigparseFrom(com.google.protobuf.ByteString data) static AgentConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AgentConfigparseFrom(com.google.protobuf.CodedInputStream input) static AgentConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AgentConfigparseFrom(InputStream input) static AgentConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AgentConfigparseFrom(ByteBuffer data) static AgentConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AgentConfig>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
AGENT_ID_FIELD_NUMBER
public static final int AGENT_ID_FIELD_NUMBER- See Also:
-
AGENT_TYPE_FIELD_NUMBER
public static final int AGENT_TYPE_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
INSTRUCTION_FIELD_NUMBER
public static final int INSTRUCTION_FIELD_NUMBER- See Also:
-
TOOLS_FIELD_NUMBER
public static final int TOOLS_FIELD_NUMBER- See Also:
-
SUB_AGENTS_FIELD_NUMBER
public static final int SUB_AGENTS_FIELD_NUMBER- See Also:
-
-
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
-
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.
-
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.
-
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.
-
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.
-
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
-
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
-
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
-
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
-
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.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AgentConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AgentConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AgentConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AgentConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AgentConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AgentConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static AgentConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static AgentConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static AgentConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AgentConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-