Class BetaManagedAgentsAgentWithOverridesParams.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsAgentWithOverridesParams.BuilderA builder for BetaManagedAgentsAgentWithOverridesParams.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaManagedAgentsAgentWithOverridesParams.Builder id(String id)
The
agentID.
-
id
final BetaManagedAgentsAgentWithOverridesParams.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.
-
type
final BetaManagedAgentsAgentWithOverridesParams.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_with_overrides")This method is primarily for setting the field to an undocumented or not yet supported value.
-
mcpServers
final BetaManagedAgentsAgentWithOverridesParams.Builder mcpServers(List<BetaManagedAgentsUrlMcpServerParams> mcpServers)
Replacement MCP server list. Full replacement: the provided array becomes the MCP servers. Send an empty array to clear; omit to preserve the agent's servers.
-
mcpServers
final BetaManagedAgentsAgentWithOverridesParams.Builder mcpServers(JsonField<List<BetaManagedAgentsUrlMcpServerParams>> mcpServers)
Sets Builder.mcpServers to an arbitrary JSON value.
You should usually call Builder.mcpServers with a well-typed
List<BetaManagedAgentsUrlMcpServerParams>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
model
final BetaManagedAgentsAgentWithOverridesParams.Builder model(BetaManagedAgentsAgentWithOverridesParams.Model model)
Replacement model. Accepts the model string, e.g.
claude-opus-5-5, or amodel_configobject. Omit to use the agent's model.
-
model
final BetaManagedAgentsAgentWithOverridesParams.Builder model(JsonField<BetaManagedAgentsAgentWithOverridesParams.Model> model)
Sets Builder.model to an arbitrary JSON value.
You should usually call Builder.model with a well-typed Model value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
model
final BetaManagedAgentsAgentWithOverridesParams.Builder model(BetaManagedAgentsModel betaManagedAgents)
Alias for calling model with
Model.ofBetaManagedAgents(betaManagedAgents).
-
model
final BetaManagedAgentsAgentWithOverridesParams.Builder model(BetaManagedAgentsModelConfigParams betaManagedAgentsModelConfigParams)
Alias for calling model with
Model.ofBetaManagedAgentsModelConfigParams(betaManagedAgentsModelConfigParams).
-
skills
final BetaManagedAgentsAgentWithOverridesParams.Builder skills(List<BetaManagedAgentsSkillParams> skills)
Replacement skill list. Full replacement: the provided array becomes the skills. Send an empty array to clear; omit to preserve the agent's skills.
-
skills
final BetaManagedAgentsAgentWithOverridesParams.Builder skills(JsonField<List<BetaManagedAgentsSkillParams>> skills)
Sets Builder.skills to an arbitrary JSON value.
You should usually call Builder.skills with a well-typed
List<BetaManagedAgentsSkillParams>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
system
final BetaManagedAgentsAgentWithOverridesParams.Builder system(String system)
Replacement system prompt. Up to 100,000 characters. Set to null to clear the agent's system prompt; omit to preserve it.
-
system
final BetaManagedAgentsAgentWithOverridesParams.Builder system(Optional<String> system)
Alias for calling Builder.system with
system.orElse(null).
-
system
final BetaManagedAgentsAgentWithOverridesParams.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 BetaManagedAgentsAgentWithOverridesParams.Builder tools(List<BetaManagedAgentsAgentWithOverridesParams.Tool> tools)
Replacement tool list. Full replacement: the provided array becomes the tool configuration. Send an empty array to clear; omit to preserve the agent's tools.
-
tools
final BetaManagedAgentsAgentWithOverridesParams.Builder tools(JsonField<List<BetaManagedAgentsAgentWithOverridesParams.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.
-
version
final BetaManagedAgentsAgentWithOverridesParams.Builder version(Integer version)
The specific
agentversion to use. Omit to use the latest version.
-
version
final BetaManagedAgentsAgentWithOverridesParams.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 BetaManagedAgentsAgentWithOverridesParams.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
addMcpServer
final BetaManagedAgentsAgentWithOverridesParams.Builder addMcpServer(BetaManagedAgentsUrlMcpServerParams mcpServer)
Adds a single BetaManagedAgentsUrlMcpServerParams to mcpServers.
-
addSkill
final BetaManagedAgentsAgentWithOverridesParams.Builder addSkill(BetaManagedAgentsSkillParams skill)
Adds a single BetaManagedAgentsSkillParams to skills.
-
addSkill
final BetaManagedAgentsAgentWithOverridesParams.Builder addSkill(BetaManagedAgentsAnthropicSkillParams anthropic)
Alias for calling addSkill with
BetaManagedAgentsSkillParams.ofAnthropic(anthropic).
-
addSkill
final BetaManagedAgentsAgentWithOverridesParams.Builder addSkill(BetaManagedAgentsCustomSkillParams custom)
Alias for calling addSkill with
BetaManagedAgentsSkillParams.ofCustom(custom).
-
addAnthropicSkill
final BetaManagedAgentsAgentWithOverridesParams.Builder addAnthropicSkill(String skillId)
Alias for calling addSkill with the following:
BetaManagedAgentsAnthropicSkillParams.builder() .skillId(skillId) .build()
-
addCustomSkill
final BetaManagedAgentsAgentWithOverridesParams.Builder addCustomSkill(String skillId)
Alias for calling addSkill with the following:
BetaManagedAgentsCustomSkillParams.builder() .skillId(skillId) .build()
-
addTool
final BetaManagedAgentsAgentWithOverridesParams.Builder addTool(BetaManagedAgentsAgentWithOverridesParams.Tool tool)
-
addTool
final BetaManagedAgentsAgentWithOverridesParams.Builder addTool(BetaManagedAgentsAgentToolset20260401Params agentToolset20260401)
Alias for calling addTool with
Tool.ofAgentToolset20260401(agentToolset20260401).
-
addTool
final BetaManagedAgentsAgentWithOverridesParams.Builder addTool(BetaManagedAgentsMcpToolsetParams mcpToolset)
Alias for calling addTool with
Tool.ofMcpToolset(mcpToolset).
-
addTool
final BetaManagedAgentsAgentWithOverridesParams.Builder addTool(BetaManagedAgentsCustomToolParams custom)
Alias for calling addTool with
Tool.ofCustom(custom).
-
addMcpToolsetTool
final BetaManagedAgentsAgentWithOverridesParams.Builder addMcpToolsetTool(String mcpServerName)
Alias for calling addTool with the following:
BetaManagedAgentsMcpToolsetParams.builder() .mcpServerName(mcpServerName) .build()
-
putAdditionalProperty
final BetaManagedAgentsAgentWithOverridesParams.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsAgentWithOverridesParams.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsAgentWithOverridesParams.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsAgentWithOverridesParams.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsAgentWithOverridesParams build()
Returns an immutable instance of BetaManagedAgentsAgentWithOverridesParams.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id()
-
-
-
-