Class BetaResponseToolChangeToolReference
-
- All Implemented Interfaces:
public final class BetaResponseToolChangeToolReferenceReference to a single tool, by the name the model uses to call it, as a
`compaction`block's`tool_changes`entry reports it: a tool declared in`tools`or defined by an earlier`tool_addition`block. Send it back unchanged with the block.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseToolChangeToolReference.BuilderA builder for BetaResponseToolChangeToolReference.
-
Method Summary
Modifier and Type Method Description final Stringname()final BetaToolChangeToolReferencetoParam()final JsonValue_type()Expected to always return the following:
However, this method can be useful for debugging and logging (e.g.JsonValue.from("tool_reference")final JsonField<String>_name()Returns the raw JSON value of name. final Map<String, JsonValue>_additionalProperties()final BetaResponseToolChangeToolReference.BuildertoBuilder()final BetaResponseToolChangeToolReferencevalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseToolChangeToolReference.Builderbuilder()Returns a mutable builder for constructing an instance of BetaResponseToolChangeToolReference. final static BetaResponseToolChangeToolReferenceof(String name)Returns an immutable instance of BetaResponseToolChangeToolReference with the required name set to the given value. -
-
Method Detail
-
toParam
final BetaToolChangeToolReference toParam()
-
_type
final JsonValue _type()
Expected to always return the following:
JsonValue.from("tool_reference")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponseToolChangeToolReference.Builder toBuilder()
-
validate
final BetaResponseToolChangeToolReference 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 BetaResponseToolChangeToolReference.Builder builder()
Returns a mutable builder for constructing an instance of BetaResponseToolChangeToolReference.
The following fields are required:
.name()
-
of
final static BetaResponseToolChangeToolReference of(String name)
Returns an immutable instance of BetaResponseToolChangeToolReference with the required name set to the given value.
-
-
-
-