Class BetaManagedAgentsMultiagent20261001Params
-
- All Implemented Interfaces:
public final class BetaManagedAgentsMultiagent20261001ParamsMultiagent 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsMultiagent20261001Params.BuilderA builder for BetaManagedAgentsMultiagent20261001Params.
-
Method Summary
Modifier and Type Method Description final Optional<BetaManagedAgentsMultiagentAdvisorParams>advisor()Whether the session's primary thread can consult an advisor model. final Optional<BetaManagedAgentsMultiagentSubagentsParams>subagents()Whether the agent can spawn session threads. final Optional<BetaManagedAgentsMultiagentWorkflowsParams>workflows()Whether the agent can start workflow runs. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("multiagent_20261001")final JsonField<BetaManagedAgentsMultiagentAdvisorParams>_advisor()Returns the raw JSON value of advisor. final JsonField<BetaManagedAgentsMultiagentSubagentsParams>_subagents()Returns the raw JSON value of subagents. final JsonField<BetaManagedAgentsMultiagentWorkflowsParams>_workflows()Returns the raw JSON value of workflows. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsMultiagent20261001Params.BuildertoBuilder()final BetaManagedAgentsMultiagent20261001Paramsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsMultiagent20261001Params.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsMultiagent20261001Params. -
-
Method Detail
-
advisor
final Optional<BetaManagedAgentsMultiagentAdvisorParams> advisor()
Whether the session's primary thread can consult an advisor model. Defaults to disabled.
-
subagents
final Optional<BetaManagedAgentsMultiagentSubagentsParams> subagents()
Whether the agent can spawn session threads. Defaults to enabled.
-
workflows
final Optional<BetaManagedAgentsMultiagentWorkflowsParams> workflows()
Whether the agent can start workflow runs. Defaults to enabled.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("multiagent_20261001")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_advisor
final JsonField<BetaManagedAgentsMultiagentAdvisorParams> _advisor()
Returns the raw JSON value of advisor.
Unlike advisor, this method doesn't throw if the JSON field has an unexpected type.
-
_subagents
final JsonField<BetaManagedAgentsMultiagentSubagentsParams> _subagents()
Returns the raw JSON value of subagents.
Unlike subagents, this method doesn't throw if the JSON field has an unexpected type.
-
_workflows
final JsonField<BetaManagedAgentsMultiagentWorkflowsParams> _workflows()
Returns the raw JSON value of workflows.
Unlike workflows, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsMultiagent20261001Params.Builder toBuilder()
-
validate
final BetaManagedAgentsMultiagent20261001Params 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 BetaManagedAgentsMultiagent20261001Params.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsMultiagent20261001Params.
-
-
-
-