Class BetaManagedAgentsMultiagentWorkflowsEnabledParams
-
- All Implemented Interfaces:
public final class BetaManagedAgentsMultiagentWorkflowsEnabledParamsThe agent can start workflow runs. Each run follows a plan, a program that the agent writes. A plan can use predefined agents, which are the saved agents in
predefined_agents, and inline agents, which it defines itself and which are not saved. Ifinline_agentsis disabled,predefined_agentsmust name at least one agent.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsMultiagentWorkflowsEnabledParams.BuilderA builder for BetaManagedAgentsMultiagentWorkflowsEnabledParams.
-
Method Summary
Modifier and Type Method Description final Optional<BetaManagedAgentsMultiagentInlineAgentsParams>inlineAgents()Whether a run's plan can define inline agents. final Optional<List<BetaManagedAgentsMultiagentPredefinedAgentParams>>predefinedAgents()Predefined agents that a run's plan can use. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("enabled")final JsonField<BetaManagedAgentsMultiagentInlineAgentsParams>_inlineAgents()Returns the raw JSON value of inlineAgents. final JsonField<List<BetaManagedAgentsMultiagentPredefinedAgentParams>>_predefinedAgents()Returns the raw JSON value of predefinedAgents. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsMultiagentWorkflowsEnabledParams.BuildertoBuilder()final BetaManagedAgentsMultiagentWorkflowsEnabledParamsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsMultiagentWorkflowsEnabledParams.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsMultiagentWorkflowsEnabledParams. -
-
Method Detail
-
inlineAgents
final Optional<BetaManagedAgentsMultiagentInlineAgentsParams> inlineAgents()
Whether a run's plan can define inline agents. Defaults to enabled.
-
predefinedAgents
final Optional<List<BetaManagedAgentsMultiagentPredefinedAgentParams>> predefinedAgents()
Predefined agents that a run's plan can use. At most 20. Defaults to null. Null and an empty list both mean no predefined agents. This list is separate from
subagents.predefined_agents, and an agent in one list is not added to the other.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("enabled")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_inlineAgents
final JsonField<BetaManagedAgentsMultiagentInlineAgentsParams> _inlineAgents()
Returns the raw JSON value of inlineAgents.
Unlike inlineAgents, this method doesn't throw if the JSON field has an unexpected type.
-
_predefinedAgents
final JsonField<List<BetaManagedAgentsMultiagentPredefinedAgentParams>> _predefinedAgents()
Returns the raw JSON value of predefinedAgents.
Unlike predefinedAgents, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsMultiagentWorkflowsEnabledParams.Builder toBuilder()
-
validate
final BetaManagedAgentsMultiagentWorkflowsEnabledParams 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 BetaManagedAgentsMultiagentWorkflowsEnabledParams.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsMultiagentWorkflowsEnabledParams.
-
-
-
-