Class BetaManagedAgentsMultiagentWorkflowsParams
-
- All Implemented Interfaces:
public final class BetaManagedAgentsMultiagentWorkflowsParamsWhether the agent can start workflow runs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceBetaManagedAgentsMultiagentWorkflowsParams.VisitorAn interface that defines how to map each variant of BetaManagedAgentsMultiagentWorkflowsParams to a value of type T.
public final classBetaManagedAgentsMultiagentWorkflowsParams.Type
-
Method Summary
-
-
Method Detail
-
enabled
final Optional<BetaManagedAgentsMultiagentWorkflowsEnabledParams> enabled()
The 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.
-
disabled
final Optional<BetaManagedAgentsMultiagentWorkflowsDisabledParams> disabled()
The agent cannot start workflow runs.
-
type
final BetaManagedAgentsMultiagentWorkflowsParams.Type type()
-
isDisabled
final Boolean isDisabled()
-
asEnabled
final BetaManagedAgentsMultiagentWorkflowsEnabledParams asEnabled()
The 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.
-
asDisabled
final BetaManagedAgentsMultiagentWorkflowsDisabledParams asDisabled()
The agent cannot start workflow runs.
-
accept
final <T extends Any> T accept(BetaManagedAgentsMultiagentWorkflowsParams.Visitor<T> visitor)
Maps this instance's current variant to a value of type T using the given visitor.
Note that this method is not forwards compatible with new variants from the API, unless visitor overrides Visitor.unknown. To handle variants not known to this version of the SDK gracefully, consider overriding Visitor.unknown:
import com.anthropic.core.JsonValue; import java.util.Optional; Optional<String> result = betaManagedAgentsMultiagentWorkflowsParams.accept(new BetaManagedAgentsMultiagentWorkflowsParams.Visitor<Optional<String>>() { @Override public Optional<String> visitEnabled(BetaManagedAgentsMultiagentWorkflowsEnabledParams enabled) { return Optional.of(enabled.toString()); } // ... @Override public Optional<String> unknown(JsonValue json) { // Or inspect the `json`. return Optional.empty(); } });
-
validate
final BetaManagedAgentsMultiagentWorkflowsParams 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.
-
ofEnabled
final static BetaManagedAgentsMultiagentWorkflowsParams ofEnabled(BetaManagedAgentsMultiagentWorkflowsEnabledParams enabled)
The 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.
-
ofDisabled
final static BetaManagedAgentsMultiagentWorkflowsParams ofDisabled(BetaManagedAgentsMultiagentWorkflowsDisabledParams disabled)
The agent cannot start workflow runs.
-
-
-
-