Class EvaluationInstance.DeprecatedAgentConfig.Builder (3.100.0)

public static final class EvaluationInstance.DeprecatedAgentConfig.Builder extends GeneratedMessage.Builder<EvaluationInstance.DeprecatedAgentConfig.Builder> implements EvaluationInstance.DeprecatedAgentConfigOrBuilder

Deprecated: Use google.cloud.aiplatform.master.AgentConfig in agent_eval_data instead. Configuration for an Agent.

Protobuf type google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig

Static Methods

getDescriptor()

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

Methods

addAllSubAgents(Iterable<String> values)

public EvaluationInstance.DeprecatedAgentConfig.Builder addAllSubAgents(Iterable<String> values)

Optional. The list of valid agent IDs (names) that this agent can delegate to. This defines the directed edges in the agent system graph topology.

repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<String>

The subAgents to add.

Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder

This builder for chaining.

addSubAgents(String value)

public EvaluationInstance.DeprecatedAgentConfig.Builder addSubAgents(String value)

Optional. The list of valid agent IDs (names) that this agent can delegate to. This defines the directed edges in the agent system graph topology.

repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The subAgents to add.

Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder

This builder for chaining.

addSubAgentsBytes(ByteString value)

public EvaluationInstance.DeprecatedAgentConfig.Builder addSubAgentsBytes(ByteString value)

Optional. The list of valid agent IDs (names) that this agent can delegate to. This defines the directed edges in the agent system graph topology.

repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes of the subAgents to add.

Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder

This builder for chaining.

build()

public EvaluationInstance.DeprecatedAgentConfig build()
Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig

buildPartial()

public EvaluationInstance.DeprecatedAgentConfig buildPartial()
Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig

clear()

public EvaluationInstance.DeprecatedAgentConfig.Builder clear()
Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder
Overrides

clearAgentId()

public EvaluationInstance.DeprecatedAgentConfig.Builder clearAgentId()

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

string agent_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder

This builder for chaining.

clearAgentType()

public EvaluationInstance.DeprecatedAgentConfig.Builder 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 = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder

This builder for chaining.

clearDescription()

public EvaluationInstance.DeprecatedAgentConfig.Builder 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 = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder

This builder for chaining.

clearDeveloperInstruction()

public EvaluationInstance.DeprecatedAgentConfig.Builder clearDeveloperInstruction()

Optional. Contains instructions from the developer for the agent. Can be static or a dynamic prompt template used with the AgentEvent.state_delta field.

.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder

clearSubAgents()

public EvaluationInstance.DeprecatedAgentConfig.Builder clearSubAgents()

Optional. The list of valid agent IDs (names) that this agent can delegate to. This defines the directed edges in the agent system graph topology.

repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder

This builder for chaining.

clearTools()

public EvaluationInstance.DeprecatedAgentConfig.Builder clearTools()

List of tools.

.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2;

Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder

clearToolsData()

public EvaluationInstance.DeprecatedAgentConfig.Builder clearToolsData()
Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder

clearToolsText()

public EvaluationInstance.DeprecatedAgentConfig.Builder clearToolsText()

A JSON string containing a list of tools available to an agent with info such as name, description, parameters and required parameters.

string tools_text = 1;

Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder

This builder for chaining.

getAgentId()

public String getAgentId()

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

string agent_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The agentId.

getAgentIdBytes()

public ByteString getAgentIdBytes()

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

string agent_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for agentId.

getAgentType()

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 = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The agentType.

getAgentTypeBytes()

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 = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for agentType.

getDefaultInstanceForType()

public EvaluationInstance.DeprecatedAgentConfig getDefaultInstanceForType()
Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig

getDescription()

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 = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The description.

getDescriptionBytes()

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 = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDeveloperInstruction()

public EvaluationInstance.InstanceData getDeveloperInstruction()

Optional. Contains instructions from the developer for the agent. Can be static or a dynamic prompt template used with the AgentEvent.state_delta field.

.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EvaluationInstance.InstanceData

The developerInstruction.

getDeveloperInstructionBuilder()

public EvaluationInstance.InstanceData.Builder getDeveloperInstructionBuilder()

Optional. Contains instructions from the developer for the agent. Can be static or a dynamic prompt template used with the AgentEvent.state_delta field.

.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EvaluationInstance.InstanceData.Builder

getDeveloperInstructionOrBuilder()

public EvaluationInstance.InstanceDataOrBuilder getDeveloperInstructionOrBuilder()

Optional. Contains instructions from the developer for the agent. Can be static or a dynamic prompt template used with the AgentEvent.state_delta field.

.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EvaluationInstance.InstanceDataOrBuilder

getSubAgents(int index)

public String getSubAgents(int index)

Optional. The list of valid agent IDs (names) that this agent can delegate to. This defines the directed edges in the agent system graph topology.

repeated string sub_agents = 7 [(.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.

getSubAgentsBytes(int index)

public ByteString getSubAgentsBytes(int index)

Optional. The list of valid agent IDs (names) that this agent can delegate to. This defines the directed edges in the agent system graph topology.

repeated string sub_agents = 7 [(.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.

getSubAgentsCount()

public int getSubAgentsCount()

Optional. The list of valid agent IDs (names) that this agent can delegate to. This defines the directed edges in the agent system graph topology.

repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of subAgents.

getSubAgentsList()

public ProtocolStringList getSubAgentsList()

Optional. The list of valid agent IDs (names) that this agent can delegate to. This defines the directed edges in the agent system graph topology.

repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ProtocolStringList

A list containing the subAgents.

getTools()

public EvaluationInstance.DeprecatedAgentConfig.Tools getTools()

List of tools.

.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2;

Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Tools

The tools.

getToolsBuilder()

public EvaluationInstance.DeprecatedAgentConfig.Tools.Builder getToolsBuilder()

List of tools.

.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2;

Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Tools.Builder

getToolsDataCase()

public EvaluationInstance.DeprecatedAgentConfig.ToolsDataCase getToolsDataCase()
Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.ToolsDataCase

getToolsOrBuilder()

public EvaluationInstance.DeprecatedAgentConfig.ToolsOrBuilder getToolsOrBuilder()

List of tools.

.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2;

Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.ToolsOrBuilder

getToolsText()

public String getToolsText()

A JSON string containing a list of tools available to an agent with info such as name, description, parameters and required parameters.

string tools_text = 1;

Returns
Type Description
String

The toolsText.

getToolsTextBytes()

public ByteString getToolsTextBytes()

A JSON string containing a list of tools available to an agent with info such as name, description, parameters and required parameters.

string tools_text = 1;

Returns
Type Description
ByteString

The bytes for toolsText.

hasDeveloperInstruction()

public boolean hasDeveloperInstruction()

Optional. Contains instructions from the developer for the agent. Can be static or a dynamic prompt template used with the AgentEvent.state_delta field.

.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the developerInstruction field is set.

hasTools()

public boolean hasTools()

List of tools.

.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2;

Returns
Type Description
boolean

Whether the tools field is set.

hasToolsText()

public boolean hasToolsText()

A JSON string containing a list of tools available to an agent with info such as name, description, parameters and required parameters.

string tools_text = 1;

Returns
Type Description
boolean

Whether the toolsText field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDeveloperInstruction(EvaluationInstance.InstanceData value)

public EvaluationInstance.DeprecatedAgentConfig.Builder mergeDeveloperInstruction(EvaluationInstance.InstanceData value)

Optional. Contains instructions from the developer for the agent. Can be static or a dynamic prompt template used with the AgentEvent.state_delta field.

.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value EvaluationInstance.InstanceData
Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder

mergeFrom(EvaluationInstance.DeprecatedAgentConfig other)

public EvaluationInstance.DeprecatedAgentConfig.Builder mergeFrom(EvaluationInstance.DeprecatedAgentConfig other)
Parameter
Name Description
other EvaluationInstance.DeprecatedAgentConfig
Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public EvaluationInstance.DeprecatedAgentConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public EvaluationInstance.DeprecatedAgentConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder
Overrides

mergeTools(EvaluationInstance.DeprecatedAgentConfig.Tools value)

public EvaluationInstance.DeprecatedAgentConfig.Builder mergeTools(EvaluationInstance.DeprecatedAgentConfig.Tools value)

List of tools.

.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2;

Parameter
Name Description
value EvaluationInstance.DeprecatedAgentConfig.Tools
Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder

setAgentId(String value)

public EvaluationInstance.DeprecatedAgentConfig.Builder setAgentId(String value)

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

string agent_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The agentId to set.

Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder

This builder for chaining.

setAgentIdBytes(ByteString value)

public EvaluationInstance.DeprecatedAgentConfig.Builder setAgentIdBytes(ByteString value)

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

string agent_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for agentId to set.

Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder

This builder for chaining.

setAgentType(String value)

public EvaluationInstance.DeprecatedAgentConfig.Builder setAgentType(String value)

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 = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The agentType to set.

Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder

This builder for chaining.

setAgentTypeBytes(ByteString value)

public EvaluationInstance.DeprecatedAgentConfig.Builder setAgentTypeBytes(ByteString value)

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 = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for agentType to set.

Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder

This builder for chaining.

setDescription(String value)

public EvaluationInstance.DeprecatedAgentConfig.Builder setDescription(String value)

Optional. A high-level description of the agent's role and responsibilities. Critical for evaluating if the agent is routing tasks correctly.

string description = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public EvaluationInstance.DeprecatedAgentConfig.Builder setDescriptionBytes(ByteString value)

Optional. A high-level description of the agent's role and responsibilities. Critical for evaluating if the agent is routing tasks correctly.

string description = 6 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder

This builder for chaining.

setDeveloperInstruction(EvaluationInstance.InstanceData value)

public EvaluationInstance.DeprecatedAgentConfig.Builder setDeveloperInstruction(EvaluationInstance.InstanceData value)

Optional. Contains instructions from the developer for the agent. Can be static or a dynamic prompt template used with the AgentEvent.state_delta field.

.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value EvaluationInstance.InstanceData
Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder

setDeveloperInstruction(EvaluationInstance.InstanceData.Builder builderForValue)

public EvaluationInstance.DeprecatedAgentConfig.Builder setDeveloperInstruction(EvaluationInstance.InstanceData.Builder builderForValue)

Optional. Contains instructions from the developer for the agent. Can be static or a dynamic prompt template used with the AgentEvent.state_delta field.

.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue EvaluationInstance.InstanceData.Builder
Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder

setSubAgents(int index, String value)

public EvaluationInstance.DeprecatedAgentConfig.Builder setSubAgents(int index, String value)

Optional. The list of valid agent IDs (names) that this agent can delegate to. This defines the directed edges in the agent system graph topology.

repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int

The index to set the value at.

value String

The subAgents to set.

Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder

This builder for chaining.

setTools(EvaluationInstance.DeprecatedAgentConfig.Tools value)

public EvaluationInstance.DeprecatedAgentConfig.Builder setTools(EvaluationInstance.DeprecatedAgentConfig.Tools value)

List of tools.

.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2;

Parameter
Name Description
value EvaluationInstance.DeprecatedAgentConfig.Tools
Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder

setTools(EvaluationInstance.DeprecatedAgentConfig.Tools.Builder builderForValue)

public EvaluationInstance.DeprecatedAgentConfig.Builder setTools(EvaluationInstance.DeprecatedAgentConfig.Tools.Builder builderForValue)

List of tools.

.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2;

Parameter
Name Description
builderForValue EvaluationInstance.DeprecatedAgentConfig.Tools.Builder
Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder

setToolsText(String value)

public EvaluationInstance.DeprecatedAgentConfig.Builder setToolsText(String value)

A JSON string containing a list of tools available to an agent with info such as name, description, parameters and required parameters.

string tools_text = 1;

Parameter
Name Description
value String

The toolsText to set.

Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder

This builder for chaining.

setToolsTextBytes(ByteString value)

public EvaluationInstance.DeprecatedAgentConfig.Builder setToolsTextBytes(ByteString value)

A JSON string containing a list of tools available to an agent with info such as name, description, parameters and required parameters.

string tools_text = 1;

Parameter
Name Description
value ByteString

The bytes for toolsText to set.

Returns
Type Description
EvaluationInstance.DeprecatedAgentConfig.Builder

This builder for chaining.