Class ResponseInputItem.AdditionalTools
-
- All Implemented Interfaces:
public final class ResponseInputItem.AdditionalTools
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseInputItem.AdditionalTools.BuilderA builder for AdditionalTools.
-
Method Summary
Modifier and Type Method Description final JsonValue_role()The role that provided the additional tools. final List<Tool>tools()A list of additional tools made available at this item. final JsonValue_type()The item type. final Optional<String>id()The unique ID of this additional tools item. final JsonField<List<Tool>>_tools()Returns the raw JSON value of tools. final JsonField<String>_id()Returns the raw JSON value of id. final Map<String, JsonValue>_additionalProperties()final ResponseInputItem.AdditionalTools.BuildertoBuilder()final ResponseInputItem.AdditionalToolsvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ResponseInputItem.AdditionalTools.Builderbuilder()Returns a mutable builder for constructing an instance of AdditionalTools. -
-
Method Detail
-
_role
final JsonValue _role()
The role that provided the additional tools. Only
developeris supported.Expected to always return the following:
JsonValue.from("developer")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_type
final JsonValue _type()
The item type. Always
additional_tools.Expected to always return the following:
JsonValue.from("additional_tools")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_tools
final JsonField<List<Tool>> _tools()
Returns the raw JSON value of tools.
Unlike tools, this method doesn't throw if the JSON field has an unexpected type.
-
_id
final JsonField<String> _id()
Returns the raw JSON value of id.
Unlike id, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseInputItem.AdditionalTools.Builder toBuilder()
-
validate
final ResponseInputItem.AdditionalTools 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 ResponseInputItem.AdditionalTools.Builder builder()
Returns a mutable builder for constructing an instance of AdditionalTools.
The following fields are required:
.tools()
-
-
-
-