Class BetaManagedAgentsSessionThreadAgent.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsSessionThreadAgent.BuilderA builder for BetaManagedAgentsSessionThreadAgent.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaManagedAgentsSessionThreadAgent.Builder id(String id)
-
id
final BetaManagedAgentsSessionThreadAgent.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 BetaManagedAgentsSessionThreadAgent.Builder description(String description)
-
description
final BetaManagedAgentsSessionThreadAgent.Builder description(Optional<String> description)
Alias for calling Builder.description with
description.orElse(null).
-
description
final BetaManagedAgentsSessionThreadAgent.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 BetaManagedAgentsSessionThreadAgent.Builder mcpServers(List<BetaManagedAgentsMcpServerUrlDefinition> mcpServers)
-
mcpServers
final BetaManagedAgentsSessionThreadAgent.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 BetaManagedAgentsSessionThreadAgent.Builder addMcpServer(BetaManagedAgentsMcpServerUrlDefinition mcpServer)
Adds a single BetaManagedAgentsMcpServerUrlDefinition to mcpServers.
-
model
final BetaManagedAgentsSessionThreadAgent.Builder model(BetaManagedAgentsModelConfig model)
Model identifier and configuration.
-
model
final BetaManagedAgentsSessionThreadAgent.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.
-
name
final BetaManagedAgentsSessionThreadAgent.Builder name(String name)
-
name
final BetaManagedAgentsSessionThreadAgent.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 BetaManagedAgentsSessionThreadAgent.Builder skills(List<BetaManagedAgentsSessionThreadAgent.Skill> skills)
-
skills
final BetaManagedAgentsSessionThreadAgent.Builder skills(JsonField<List<BetaManagedAgentsSessionThreadAgent.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 BetaManagedAgentsSessionThreadAgent.Builder addSkill(BetaManagedAgentsSessionThreadAgent.Skill skill)
-
addSkill
final BetaManagedAgentsSessionThreadAgent.Builder addSkill(BetaManagedAgentsAnthropicSkill anthropic)
Alias for calling addSkill with
Skill.ofAnthropic(anthropic).
-
addSkill
final BetaManagedAgentsSessionThreadAgent.Builder addSkill(BetaManagedAgentsCustomSkill custom)
Alias for calling addSkill with
Skill.ofCustom(custom).
-
system
final BetaManagedAgentsSessionThreadAgent.Builder system(String system)
-
system
final BetaManagedAgentsSessionThreadAgent.Builder system(Optional<String> system)
Alias for calling Builder.system with
system.orElse(null).
-
system
final BetaManagedAgentsSessionThreadAgent.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 BetaManagedAgentsSessionThreadAgent.Builder tools(List<BetaManagedAgentsSessionThreadAgent.Tool> tools)
-
tools
final BetaManagedAgentsSessionThreadAgent.Builder tools(JsonField<List<BetaManagedAgentsSessionThreadAgent.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 BetaManagedAgentsSessionThreadAgent.Builder addTool(BetaManagedAgentsSessionThreadAgent.Tool tool)
-
addTool
final BetaManagedAgentsSessionThreadAgent.Builder addTool(BetaManagedAgentsAgentToolset20260401 agentToolset20260401)
Alias for calling addTool with
Tool.ofAgentToolset20260401(agentToolset20260401).
-
addTool
final BetaManagedAgentsSessionThreadAgent.Builder addTool(BetaManagedAgentsMcpToolset mcpToolset)
Alias for calling addTool with
Tool.ofMcpToolset(mcpToolset).
-
addTool
final BetaManagedAgentsSessionThreadAgent.Builder addTool(BetaManagedAgentsCustomTool custom)
Alias for calling addTool with
Tool.ofCustom(custom).
-
type
final BetaManagedAgentsSessionThreadAgent.Builder type(BetaManagedAgentsSessionThreadAgent.Type type)
-
type
final BetaManagedAgentsSessionThreadAgent.Builder type(JsonField<BetaManagedAgentsSessionThreadAgent.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 BetaManagedAgentsSessionThreadAgent.Builder version(Integer version)
-
version
final BetaManagedAgentsSessionThreadAgent.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 BetaManagedAgentsSessionThreadAgent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaManagedAgentsSessionThreadAgent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsSessionThreadAgent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsSessionThreadAgent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsSessionThreadAgent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsSessionThreadAgent build()
Returns an immutable instance of BetaManagedAgentsSessionThreadAgent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .description() .mcpServers() .model() .name() .skills() .system() .tools() .type() .version()
-
-
-
-