Class BetaManagedAgentsSessionRefusal
-
- All Implemented Interfaces:
public final class BetaManagedAgentsSessionRefusalThe turn ended because the model's response was refused, for example by a safety classifier.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaManagedAgentsSessionRefusal.BuilderA builder for BetaManagedAgentsSessionRefusal.
-
Method Summary
Modifier and Type Method Description final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("refusal")final Map<String, JsonValue>_additionalProperties()final BetaManagedAgentsSessionRefusal.BuildertoBuilder()final BetaManagedAgentsSessionRefusalvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaManagedAgentsSessionRefusal.Builderbuilder()Returns a mutable builder for constructing an instance of BetaManagedAgentsSessionRefusal. -
-
Method Detail
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("refusal")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaManagedAgentsSessionRefusal.Builder toBuilder()
-
validate
final BetaManagedAgentsSessionRefusal 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 BetaManagedAgentsSessionRefusal.Builder builder()
Returns a mutable builder for constructing an instance of BetaManagedAgentsSessionRefusal.
-
-
-
-