Class BetaManagedAgentsAgent.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsAgent.BuilderA builder for BetaManagedAgentsAgent.
-
-
Method Summary
-
-
Method Detail
-
id
final BetaManagedAgentsAgent.Builder id(String id)
-
id
final BetaManagedAgentsAgent.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.
-
archivedAt
final BetaManagedAgentsAgent.Builder archivedAt(OffsetDateTime archivedAt)
A timestamp in RFC 3339 format
-
archivedAt
final BetaManagedAgentsAgent.Builder archivedAt(Optional<OffsetDateTime> archivedAt)
Alias for calling Builder.archivedAt with
archivedAt.orElse(null).
-
archivedAt
final BetaManagedAgentsAgent.Builder archivedAt(JsonField<OffsetDateTime> archivedAt)
Sets Builder.archivedAt to an arbitrary JSON value.
You should usually call Builder.archivedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
createdAt
final BetaManagedAgentsAgent.Builder createdAt(OffsetDateTime createdAt)
A timestamp in RFC 3339 format
-
createdAt
final BetaManagedAgentsAgent.Builder createdAt(JsonField<OffsetDateTime> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
description
final BetaManagedAgentsAgent.Builder description(String description)
-
description
final BetaManagedAgentsAgent.Builder description(Optional<String> description)
Alias for calling Builder.description with
description.orElse(null).
-
description
final BetaManagedAgentsAgent.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 BetaManagedAgentsAgent.Builder mcpServers(List<BetaManagedAgentsMcpServerUrlDefinition> mcpServers)
-
mcpServers
final BetaManagedAgentsAgent.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 BetaManagedAgentsAgent.Builder addMcpServer(BetaManagedAgentsMcpServerUrlDefinition mcpServer)
Adds a single BetaManagedAgentsMcpServerUrlDefinition to mcpServers.
-
metadata
final BetaManagedAgentsAgent.Builder metadata(BetaManagedAgentsAgent.Metadata metadata)
-
metadata
final BetaManagedAgentsAgent.Builder metadata(JsonField<BetaManagedAgentsAgent.Metadata> metadata)
Sets Builder.metadata to an arbitrary JSON value.
You should usually call Builder.metadata with a well-typed Metadata value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
model
final BetaManagedAgentsAgent.Builder model(BetaManagedAgentsModelConfig model)
Model identifier and configuration.
-
model
final BetaManagedAgentsAgent.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 BetaManagedAgentsAgent.Builder multiagent(BetaManagedAgentsMultiagent multiagent)
Resolved coordinator topology with a concrete agent roster.
-
multiagent
final BetaManagedAgentsAgent.Builder multiagent(Optional<BetaManagedAgentsMultiagent> multiagent)
Alias for calling Builder.multiagent with
multiagent.orElse(null).
-
multiagent
final BetaManagedAgentsAgent.Builder multiagent(JsonField<BetaManagedAgentsMultiagent> multiagent)
Sets Builder.multiagent to an arbitrary JSON value.
You should usually call Builder.multiagent with a well-typed BetaManagedAgentsMultiagent value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
coordinatorMultiagent
final BetaManagedAgentsAgent.Builder coordinatorMultiagent(List<BetaManagedAgentsAgentReference> agents)
Alias for calling multiagent with the following:
BetaManagedAgentsMultiagent.builder() .type(BetaManagedAgentsMultiagent.Type.COORDINATOR) .agents(agents) .build()
-
name
final BetaManagedAgentsAgent.Builder name(String name)
-
name
final BetaManagedAgentsAgent.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 BetaManagedAgentsAgent.Builder skills(List<BetaManagedAgentsAgent.Skill> skills)
-
skills
final BetaManagedAgentsAgent.Builder skills(JsonField<List<BetaManagedAgentsAgent.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 BetaManagedAgentsAgent.Builder addSkill(BetaManagedAgentsAgent.Skill skill)
-
addSkill
final BetaManagedAgentsAgent.Builder addSkill(BetaManagedAgentsAnthropicSkill anthropic)
Alias for calling addSkill with
Skill.ofAnthropic(anthropic).
-
addSkill
final BetaManagedAgentsAgent.Builder addSkill(BetaManagedAgentsCustomSkill custom)
Alias for calling addSkill with
Skill.ofCustom(custom).
-
system
final BetaManagedAgentsAgent.Builder system(String system)
-
system
final BetaManagedAgentsAgent.Builder system(Optional<String> system)
Alias for calling Builder.system with
system.orElse(null).
-
system
final BetaManagedAgentsAgent.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 BetaManagedAgentsAgent.Builder tools(List<BetaManagedAgentsAgent.Tool> tools)
-
tools
final BetaManagedAgentsAgent.Builder tools(JsonField<List<BetaManagedAgentsAgent.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 BetaManagedAgentsAgent.Builder addTool(BetaManagedAgentsAgent.Tool tool)
-
addTool
final BetaManagedAgentsAgent.Builder addTool(BetaManagedAgentsAgentToolset20260401 agentToolset20260401)
Alias for calling addTool with
Tool.ofAgentToolset20260401(agentToolset20260401).
-
addTool
final BetaManagedAgentsAgent.Builder addTool(BetaManagedAgentsMcpToolset mcpToolset)
Alias for calling addTool with
Tool.ofMcpToolset(mcpToolset).
-
addTool
final BetaManagedAgentsAgent.Builder addTool(BetaManagedAgentsCustomTool custom)
Alias for calling addTool with
Tool.ofCustom(custom).
-
type
final BetaManagedAgentsAgent.Builder type(BetaManagedAgentsAgent.Type type)
-
type
final BetaManagedAgentsAgent.Builder type(JsonField<BetaManagedAgentsAgent.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.
-
updatedAt
final BetaManagedAgentsAgent.Builder updatedAt(OffsetDateTime updatedAt)
A timestamp in RFC 3339 format
-
updatedAt
final BetaManagedAgentsAgent.Builder updatedAt(JsonField<OffsetDateTime> updatedAt)
Sets Builder.updatedAt to an arbitrary JSON value.
You should usually call Builder.updatedAt with a well-typed OffsetDateTime value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
version
final BetaManagedAgentsAgent.Builder version(Integer version)
The agent's current version. Starts at 1 and increments when the agent is modified.
-
version
final BetaManagedAgentsAgent.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 BetaManagedAgentsAgent.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaManagedAgentsAgent.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsAgent.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsAgent.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsAgent.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsAgent build()
Returns an immutable instance of BetaManagedAgentsAgent.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .archivedAt() .createdAt() .description() .mcpServers() .metadata() .model() .multiagent() .name() .skills() .system() .tools() .type() .updatedAt() .version()
-
-
-
-