Class BetaManagedAgentsMultiagentCoordinatorParams
-
- All Implemented Interfaces:
public final class BetaManagedAgentsMultiagentCoordinatorParamsRecommendation: use
multiagent_20261001instead ofcoordinator. A coordinator topology: the session's primary thread orchestrates work by spawning session threads, each running an agent drawn from theagentsroster.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsMultiagentCoordinatorParams.BuilderA builder for BetaManagedAgentsMultiagentCoordinatorParams.
-
Method Summary
Modifier and Type Method Description final List<BetaManagedAgentsMultiagentRosterEntryParams>agents()Agents the coordinator may spawn as session threads. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("coordinator")final JsonField<List<BetaManagedAgentsMultiagentRosterEntryParams>>_agents()Returns the raw JSON value of agents. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsMultiagentCoordinatorParams.BuildertoBuilder()final BetaManagedAgentsMultiagentCoordinatorParamsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsMultiagentCoordinatorParams.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsMultiagentCoordinatorParams. final static BetaManagedAgentsMultiagentCoordinatorParamsof(List<BetaManagedAgentsMultiagentRosterEntryParams> agents)Returns an immutable instance of BetaManagedAgentsMultiagentCoordinatorParams with the required agents set to the given value. -
-
Method Detail
-
agents
final 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).
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("coordinator")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_agents
final JsonField<List<BetaManagedAgentsMultiagentRosterEntryParams>> _agents()
Returns the raw JSON value of agents.
Unlike agents, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsMultiagentCoordinatorParams.Builder toBuilder()
-
validate
final BetaManagedAgentsMultiagentCoordinatorParams validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static BetaManagedAgentsMultiagentCoordinatorParams.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsMultiagentCoordinatorParams.
The following fields are required:
.agents()
-
of
final static BetaManagedAgentsMultiagentCoordinatorParams of(List<BetaManagedAgentsMultiagentRosterEntryParams> agents)
Returns an immutable instance of BetaManagedAgentsMultiagentCoordinatorParams with the required agents set to the given value.
-
-
-
-