Package com.anthropic.models.beta.agents
Interface BetaManagedAgentsMcpToolConfigParams.PermissionPolicy.Visitor
-
- All Implemented Interfaces:
public interface BetaManagedAgentsMcpToolConfigParams.PermissionPolicy.Visitor<T extends Object>An interface that defines how to map each variant of PermissionPolicy to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract TvisitAlwaysAllow(BetaManagedAgentsAlwaysAllowPolicy alwaysAllow)Tool calls are automatically approved without user confirmation. abstract TvisitAlwaysAsk(BetaManagedAgentsAlwaysAskPolicy alwaysAsk)Tool calls require user confirmation before execution. Tunknown(JsonValue json)Maps an unknown variant of PermissionPolicy to a value of type T. -
-
Method Detail
-
visitAlwaysAllow
abstract T visitAlwaysAllow(BetaManagedAgentsAlwaysAllowPolicy alwaysAllow)
Tool calls are automatically approved without user confirmation.
-
visitAlwaysAsk
abstract T visitAlwaysAsk(BetaManagedAgentsAlwaysAskPolicy alwaysAsk)
Tool calls require user confirmation before execution.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of PermissionPolicy to a value of type T.
An instance of PermissionPolicy 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.
-
-
-
-