Interface BetaManagedAgentsMultiagentParams.Visitor
-
- All Implemented Interfaces:
public interface BetaManagedAgentsMultiagentParams.Visitor<T extends Object>An interface that defines how to map each variant of BetaManagedAgentsMultiagentParams to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract TvisitCoordinator(BetaManagedAgentsMultiagentCoordinatorParams coordinator)Recommendation: use multiagent_20261001instead ofcoordinator.abstract TvisitMultiagent20261001(BetaManagedAgentsMultiagent20261001Params multiagent20261001)Multiagent configuration with three members, each enabled or disabled on its own. Tunknown(JsonValue json)Maps an unknown variant of BetaManagedAgentsMultiagentParams to a value of type T. -
-
Method Detail
-
visitCoordinator
abstract T visitCoordinator(BetaManagedAgentsMultiagentCoordinatorParams coordinator)
Recommendation: 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.
-
visitMultiagent20261001
abstract T visitMultiagent20261001(BetaManagedAgentsMultiagent20261001Params multiagent20261001)
Multiagent configuration with three members, each enabled or disabled on its own. On an update, if the agent's stored
multiagentalso has typemultiagent_20261001, this configuration is merged into the stored one, level by level, instead of replacing it. A key that the update omits keeps its stored value. A key sent as null takes its default, on create as well, so"workflows": nullenables workflows. An object sent with atypeother than the stored one replaces the stored object, and the keys that it omits take their defaults. Apredefined_agentslist that is sent replaces the stored list. Every object that is sent needs itstype, and an enabledadvisorneeds itsmodel. Other validation applies to the merged result.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of BetaManagedAgentsMultiagentParams to a value of type T.
An instance of BetaManagedAgentsMultiagentParams can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-