Class BetaManagedAgentsAgentAutoEvaluatedPermissionDeny
-
- All Implemented Interfaces:
public final class BetaManagedAgentsAgentAutoEvaluatedPermissionDenyThe 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsAgentAutoEvaluatedPermissionDeny.BuilderA builder for BetaManagedAgentsAgentAutoEvaluatedPermissionDeny.
-
Method Summary
Modifier and Type Method Description final StringreasonCode()The judgement's grounds in registry-bound terms. final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("deny")final JsonField<String>_reasonCode()Returns the raw JSON value of reasonCode. final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsAgentAutoEvaluatedPermissionDeny.BuildertoBuilder()final BetaManagedAgentsAgentAutoEvaluatedPermissionDenyvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsAgentAutoEvaluatedPermissionDeny.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsAgentAutoEvaluatedPermissionDeny. final static BetaManagedAgentsAgentAutoEvaluatedPermissionDenyof(String reasonCode)Returns an immutable instance of BetaManagedAgentsAgentAutoEvaluatedPermissionDeny with the required reasonCode set to the given value. -
-
Method Detail
-
reasonCode
final String reasonCode()
The judgement's grounds in registry-bound terms. Open registry; currently "high_risk" (judged high-risk; the call does not run) and "indeterminate" (no judgement was reached; the call does not run). Clients must tolerate values outside this set.
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("deny")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_reasonCode
final JsonField<String> _reasonCode()
Returns the raw JSON value of reasonCode.
Unlike reasonCode, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsAgentAutoEvaluatedPermissionDeny.Builder toBuilder()
-
validate
final BetaManagedAgentsAgentAutoEvaluatedPermissionDeny 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.
-
builder
final static BetaManagedAgentsAgentAutoEvaluatedPermissionDeny.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsAgentAutoEvaluatedPermissionDeny.
The following fields are required:
.reasonCode()
-
of
final static BetaManagedAgentsAgentAutoEvaluatedPermissionDeny of(String reasonCode)
Returns an immutable instance of BetaManagedAgentsAgentAutoEvaluatedPermissionDeny with the required reasonCode set to the given value.
-
-
-
-