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.
-
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.
-
addMcpServer
final BetaManagedAgentsSessionAgent.Builder addMcpServer(BetaManagedAgentsMcpServerUrlDefinition mcpServer)
Adds a single BetaManagedAgentsMcpServerUrlDefinition to mcpServers.
-
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(BetaManagedAgentsSessionMultiagentCoordinator multiagent)
Resolved coordinator topology with full agent definitions for each roster member.
-
multiagent
final BetaManagedAgentsSessionAgent.Builder multiagent(Optional<BetaManagedAgentsSessionMultiagentCoordinator> multiagent)
Alias for calling Builder.multiagent with
multiagent.orElse(null).
-
multiagent
final BetaManagedAgentsSessionAgent.Builder multiagent(JsonField<BetaManagedAgentsSessionMultiagentCoordinator> multiagent)
Sets Builder.multiagent to an arbitrary JSON value.
You should usually call Builder.multiagent with a well-typed BetaManagedAgentsSessionMultiagentCoordinator value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
coordinatorMultiagent
final BetaManagedAgentsSessionAgent.Builder coordinatorMultiagent(List<BetaManagedAgentsSessionThreadAgent> agents)
Alias for calling multiagent with the following:
BetaManagedAgentsSessionMultiagentCoordinator.builder() .type(BetaManagedAgentsSessionMultiagentCoordinator.Type.COORDINATOR) .agents(agents) .build()
-
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.
-
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).
-
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.
-
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).
-
type
final BetaManagedAgentsSessionAgent.Builder type(BetaManagedAgentsSessionAgent.Type type)
-
type
final BetaManagedAgentsSessionAgent.Builder type(JsonField<BetaManagedAgentsSessionAgent.Type> type)
Sets Builder.type to an arbitrary JSON value.
You should usually call Builder.type with a well-typed Type value instead. 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)
-
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() .mcpServers() .model() .multiagent() .name() .skills() .system() .tools() .type() .version()
-
-
-
-