Interface BetaManagedAgentsEditToolConfigParams.PermissionPolicy.Visitor
-
- All Implemented Interfaces:
public interface BetaManagedAgentsEditToolConfigParams.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. abstract TvisitAuto(BetaManagedAgentsAutoPolicy auto)The server decides each tool call individually: it judges, from the tool, its input, and the session content so far, whether the call is safe to execute or high-risk, and evaluates it to allow when judged safe and to deny when judged high-risk. 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.
-
visitAuto
abstract T visitAuto(BetaManagedAgentsAutoPolicy auto)
The server decides each tool call individually: it judges, from the tool, its input, and the session content so far, whether the call is safe to execute or high-risk, and evaluates it to allow when judged safe and to deny when judged high-risk. A call the server cannot reach a judgement on evaluates to ask, or for some causes to deny, for example when the organization is out of credits or has reached a spend limit.
-
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.
-
-
-
-