Class BetaManagedAgentsMultiagentParams.Builder
-
- All Implemented Interfaces:
public final class BetaManagedAgentsMultiagentParams.BuilderA builder for BetaManagedAgentsMultiagentParams.
-
-
Method Summary
-
-
Method Detail
-
agents
final BetaManagedAgentsMultiagentParams.Builder agents(List<BetaManagedAgentsMultiagentRosterEntryParams> agents)
Agents the coordinator may spawn as session threads. 1–20 entries. Each entry is an agent ID string, a versioned
{"type":"agent","id","version"}reference, or{"type":"self"}to allow recursive self-invocation. Entries must reference distinct agents (after resolvingselfand string forms); at most oneself. Referenced agents must exist, must not be archived, and must not themselves havemultiagentset (depth limit 1).
-
agents
final BetaManagedAgentsMultiagentParams.Builder agents(JsonField<List<BetaManagedAgentsMultiagentRosterEntryParams>> agents)
Sets Builder.agents to an arbitrary JSON value.
You should usually call Builder.agents with a well-typed
List<BetaManagedAgentsMultiagentRosterEntryParams>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addAgent
final BetaManagedAgentsMultiagentParams.Builder addAgent(BetaManagedAgentsMultiagentRosterEntryParams agent)
Adds a single BetaManagedAgentsMultiagentRosterEntryParams to agents.
-
addAgent
final BetaManagedAgentsMultiagentParams.Builder addAgent(String string)
Alias for calling addAgent with
BetaManagedAgentsMultiagentRosterEntryParams.ofString(string).
-
addAgent
final BetaManagedAgentsMultiagentParams.Builder addAgent(BetaManagedAgentsAgentParams agent)
Alias for calling addAgent with
BetaManagedAgentsMultiagentRosterEntryParams.ofAgent(agent).
-
addAgent
final BetaManagedAgentsMultiagentParams.Builder addAgent(BetaManagedAgentsMultiagentSelfParams self)
Alias for calling addAgent with
BetaManagedAgentsMultiagentRosterEntryParams.ofSelf(self).
-
type
final BetaManagedAgentsMultiagentParams.Builder type(BetaManagedAgentsMultiagentParams.Type type)
-
type
final BetaManagedAgentsMultiagentParams.Builder type(JsonField<BetaManagedAgentsMultiagentParams.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.
-
additionalProperties
final BetaManagedAgentsMultiagentParams.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaManagedAgentsMultiagentParams.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaManagedAgentsMultiagentParams.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaManagedAgentsMultiagentParams.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaManagedAgentsMultiagentParams.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaManagedAgentsMultiagentParams build()
Returns an immutable instance of BetaManagedAgentsMultiagentParams.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.agents() .type()
-
-
-
-