Class BetaManagedAgentsSessionAgent.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsSessionAgent.BuilderA builder for BetaManagedAgentsSessionAgent.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaManagedAgentsSessionAgent.Builder id(String id)
-
id
final BetaManagedAgentsSessionAgent.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
description
final BetaManagedAgentsSessionAgent.Builder description(String description)
-
description
final BetaManagedAgentsSessionAgent.Builder description(Optional<String> description)
Alias for calling Builder.description with
description.orElse(null).
-
description
final BetaManagedAgentsSessionAgent.Builder description(JsonField<String> description)
Sets Builder.description to an arbitrary JSON value.
You should usually call Builder.description with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
executionIdentity
final BetaManagedAgentsSessionAgent.Builder executionIdentity(BetaManagedAgentsExecutionIdentity executionIdentity)
Execution principal snapshotted from the agent at session creation. Always present;
{"type": "service_account"}when runs carry no customer-named principal.
-
executionIdentity
final BetaManagedAgentsSessionAgent.Builder executionIdentity(JsonField<BetaManagedAgentsExecutionIdentity> executionIdentity)
Sets Builder.executionIdentity to an arbitrary JSON value.
You should usually call Builder.executionIdentity with a well-typed BetaManagedAgentsExecutionIdentity value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
executionIdentity
final BetaManagedAgentsSessionAgent.Builder executionIdentity(BetaManagedAgentsAwsRoleExecutionIdentity awsRole)
Alias for calling executionIdentity with
BetaManagedAgentsExecutionIdentity.ofAwsRole(awsRole).
-
executionIdentity
final BetaManagedAgentsSessionAgent.Builder executionIdentity(BetaManagedAgentsServiceAccountExecutionIdentity serviceAccount)
Alias for calling executionIdentity with
BetaManagedAgentsExecutionIdentity.ofServiceAccount(serviceAccount).
-
mcpServers
final BetaManagedAgentsSessionAgent.Builder mcpServers(List<BetaManagedAgentsMcpServerUrlDefinition> mcpServers)
-
mcpServers
final BetaManagedAgentsSessionAgent.Builder mcpServers(JsonField<List<BetaManagedAgentsMcpServerUrlDefinition>> mcpServers)
Sets Builder.mcpServers to an arbitrary JSON value.
You should usually call Builder.mcpServers with a well-typed
List<BetaManagedAgentsMcpServerUrlDefinition>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
model
final BetaManagedAgentsSessionAgent.Builder model(BetaManagedAgentsModelConfig model)
Model identifier and configuration.
-
model
final BetaManagedAgentsSessionAgent.Builder model(JsonField<BetaManagedAgentsModelConfig> model)
Sets Builder.model to an arbitrary JSON value.
You should usually call Builder.model with a well-typed BetaManagedAgentsModelConfig value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
multiagent
final BetaManagedAgentsSessionAgent.Builder multiagent(BetaManagedAgentsSessionMultiagent multiagent)
Resolved multiagent orchestration configuration. Null when the agent is single-threaded.
-
multiagent
final BetaManagedAgentsSessionAgent.Builder multiagent(Optional<BetaManagedAgentsSessionMultiagent> multiagent)
Alias for calling Builder.multiagent with
multiagent.orElse(null).
-
multiagent
final BetaManagedAgentsSessionAgent.Builder multiagent(JsonField<BetaManagedAgentsSessionMultiagent> multiagent)
Sets Builder.multiagent to an arbitrary JSON value.
You should usually call Builder.multiagent with a well-typed BetaManagedAgentsSessionMultiagent value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
multiagent
final BetaManagedAgentsSessionAgent.Builder multiagent(BetaManagedAgentsSessionMultiagentCoordinator coordinator)
Alias for calling multiagent with
BetaManagedAgentsSessionMultiagent.ofCoordinator(coordinator).
-
multiagent
final BetaManagedAgentsSessionAgent.Builder multiagent(BetaManagedAgentsSessionMultiagent20261001 multiagent20261001)
Alias for calling multiagent with
BetaManagedAgentsSessionMultiagent.ofMultiagent20261001(multiagent20261001).
-
name
final BetaManagedAgentsSessionAgent.Builder name(String name)
-
name
final BetaManagedAgentsSessionAgent.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
skills
final BetaManagedAgentsSessionAgent.Builder skills(List<BetaManagedAgentsSessionAgent.Skill> skills)
-
skills
final BetaManagedAgentsSessionAgent.Builder skills(JsonField<List<BetaManagedAgentsSessionAgent.Skill>> skills)
Sets Builder.skills to an arbitrary JSON value.
You should usually call Builder.skills with a well-typed
List<Skill>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
system
final BetaManagedAgentsSessionAgent.Builder system(String system)
-
system
final BetaManagedAgentsSessionAgent.Builder system(Optional<String> system)
Alias for calling Builder.system with
system.orElse(null).
-
system
final BetaManagedAgentsSessionAgent.Builder system(JsonField<String> system)
Sets Builder.system to an arbitrary JSON value.
You should usually call Builder.system with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
tools
final BetaManagedAgentsSessionAgent.Builder tools(List<BetaManagedAgentsSessionAgent.Tool> tools)
-
tools
final BetaManagedAgentsSessionAgent.Builder tools(JsonField<List<BetaManagedAgentsSessionAgent.Tool>> tools)
Sets Builder.tools to an arbitrary JSON value.
You should usually call Builder.tools with a well-typed
List<Tool>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaManagedAgentsSessionAgent.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("agent")This method is primarily for setting the field to an undocumented or not yet supported value.
-
version
final BetaManagedAgentsSessionAgent.Builder version(Integer version)
-
version
final BetaManagedAgentsSessionAgent.Builder version(JsonField<Integer> version)
Sets Builder.version to an arbitrary JSON value.
You should usually call Builder.version with a well-typed Int value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaManagedAgentsSessionAgent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
awsRoleExecutionIdentity
final BetaManagedAgentsSessionAgent.Builder awsRoleExecutionIdentity(String roleArn)
Alias for calling executionIdentity with the following:
BetaManagedAgentsAwsRoleExecutionIdentity.builder() .roleArn(roleArn) .build()
-
addMcpServer
final BetaManagedAgentsSessionAgent.Builder addMcpServer(BetaManagedAgentsMcpServerUrlDefinition mcpServer)
Adds a single BetaManagedAgentsMcpServerUrlDefinition to mcpServers.
-
coordinatorMultiagent
final BetaManagedAgentsSessionAgent.Builder coordinatorMultiagent(List<BetaManagedAgentsSessionMultiagentCoordinator.Agent> agents)
Alias for calling multiagent with the following:
BetaManagedAgentsSessionMultiagentCoordinator.builder() .agents(agents) .build()
-
addSkill
final BetaManagedAgentsSessionAgent.Builder addSkill(BetaManagedAgentsSessionAgent.Skill skill)
-
addSkill
final BetaManagedAgentsSessionAgent.Builder addSkill(BetaManagedAgentsAnthropicSkill anthropic)
Alias for calling addSkill with
Skill.ofAnthropic(anthropic).
-
addSkill
final BetaManagedAgentsSessionAgent.Builder addSkill(BetaManagedAgentsCustomSkill custom)
Alias for calling addSkill with
Skill.ofCustom(custom).
-
addTool
final BetaManagedAgentsSessionAgent.Builder addTool(BetaManagedAgentsSessionAgent.Tool tool)
-
addTool
final BetaManagedAgentsSessionAgent.Builder addTool(BetaManagedAgentsAgentToolset20260401 agentToolset20260401)
Alias for calling addTool with
Tool.ofAgentToolset20260401(agentToolset20260401).
-
addTool
final BetaManagedAgentsSessionAgent.Builder addTool(BetaManagedAgentsMcpToolset mcpToolset)
Alias for calling addTool with
Tool.ofMcpToolset(mcpToolset).
-
addTool
final BetaManagedAgentsSessionAgent.Builder addTool(BetaManagedAgentsCustomTool custom)
Alias for calling addTool with
Tool.ofCustom(custom).
-
putAdditionalProperty
final BetaManagedAgentsSessionAgent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsSessionAgent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsSessionAgent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsSessionAgent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsSessionAgent build()
Returns an immutable instance of BetaManagedAgentsSessionAgent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .description() .executionIdentity() .mcpServers() .model() .multiagent() .name() .skills() .system() .tools() .version()
-
-
-
-