Interface BetaManagedAgentsAgentAutoEvaluatedPermission.Visitor
-
- All Implemented Interfaces:
public interface BetaManagedAgentsAgentAutoEvaluatedPermission.Visitor<T extends Object>An interface that defines how to map each variant of BetaManagedAgentsAgentAutoEvaluatedPermission to a value of type T.
-
-
Method Summary
Modifier and Type Method Description abstract TvisitAllow(BetaManagedAgentsAgentAutoEvaluatedPermissionAllow allow)The server judged the invocation safe to execute without client approval. abstract TvisitAsk(BetaManagedAgentsAgentAutoEvaluatedPermissionAsk ask)The server reached no judgement; the invocation is held for client approval. abstract TvisitDeny(BetaManagedAgentsAgentAutoEvaluatedPermissionDeny deny)The server judged the invocation high-risk, or reached no judgement and did not hold it for client approval (for example, because the organization is out of credits or has reached a spend limit); it does not execute and a synthetic error tool result is appended. Tunknown(JsonValue json)Maps an unknown variant of BetaManagedAgentsAgentAutoEvaluatedPermission to a value of type T. -
-
Method Detail
-
visitAllow
abstract T visitAllow(BetaManagedAgentsAgentAutoEvaluatedPermissionAllow allow)
The server judged the invocation safe to execute without client approval.
-
visitAsk
abstract T visitAsk(BetaManagedAgentsAgentAutoEvaluatedPermissionAsk ask)
The server reached no judgement; the invocation is held for client approval.
-
visitDeny
abstract T visitDeny(BetaManagedAgentsAgentAutoEvaluatedPermissionDeny deny)
The server judged the invocation high-risk, or reached no judgement and did not hold it for client approval (for example, because the organization is out of credits or has reached a spend limit); it does not execute and a synthetic error tool result is appended.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of BetaManagedAgentsAgentAutoEvaluatedPermission to a value of type T.
An instance of BetaManagedAgentsAgentAutoEvaluatedPermission 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.
-
-
-
-