Class BetaManagedAgentsSessionMultiagentWorkflows
-
- All Implemented Interfaces:
public final class BetaManagedAgentsSessionMultiagentWorkflowsWhether the agent can start workflow runs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceBetaManagedAgentsSessionMultiagentWorkflows.VisitorAn interface that defines how to map each variant of BetaManagedAgentsSessionMultiagentWorkflows to a value of type T.
public final classBetaManagedAgentsSessionMultiagentWorkflows.Type
-
Method Summary
-
-
Method Detail
-
enabled
final Optional<BetaManagedAgentsSessionMultiagentWorkflowsEnabled> enabled()
The agent can start workflow runs.
-
disabled
final Optional<BetaManagedAgentsMultiagentWorkflowsDisabled> disabled()
The agent cannot start workflow runs.
-
type
final BetaManagedAgentsSessionMultiagentWorkflows.Type type()
-
isDisabled
final Boolean isDisabled()
-
asEnabled
final BetaManagedAgentsSessionMultiagentWorkflowsEnabled asEnabled()
The agent can start workflow runs.
-
asDisabled
final BetaManagedAgentsMultiagentWorkflowsDisabled asDisabled()
The agent cannot start workflow runs.
-
accept
final <T extends Any> T accept(BetaManagedAgentsSessionMultiagentWorkflows.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 = betaManagedAgentsSessionMultiagentWorkflows.accept(new BetaManagedAgentsSessionMultiagentWorkflows.Visitor<Optional<String>>() { @Override public Optional<String> visitEnabled(BetaManagedAgentsSessionMultiagentWorkflowsEnabled enabled) { return Optional.of(enabled.toString()); } // ... @Override public Optional<String> unknown(JsonValue json) { // Or inspect the `json`. return Optional.empty(); } });
-
validate
final BetaManagedAgentsSessionMultiagentWorkflows 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 BetaManagedAgentsSessionMultiagentWorkflows ofEnabled(BetaManagedAgentsSessionMultiagentWorkflowsEnabled enabled)
The agent can start workflow runs.
-
ofDisabled
final static BetaManagedAgentsSessionMultiagentWorkflows ofDisabled(BetaManagedAgentsMultiagentWorkflowsDisabled disabled)
The agent cannot start workflow runs.
-
-
-
-