Class ResponseOutputItem.AdditionalTools
-
- All Implemented Interfaces:
public final class ResponseOutputItem.AdditionalTools
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseOutputItem.AdditionalTools.BuilderA builder for AdditionalTools.
public final classResponseOutputItem.AdditionalTools.RoleThe role that provided the additional tools.
-
Method Summary
Modifier and Type Method Description final Stringid()The unique ID of the additional tools item. final ResponseOutputItem.AdditionalTools.Rolerole()The role that provided the additional tools. final List<Tool>tools()The additional tool definitions made available at this item. final JsonValue_type()The type of the item. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<ResponseOutputItem.AdditionalTools.Role>_role()Returns the raw JSON value of role. final JsonField<List<Tool>>_tools()Returns the raw JSON value of tools. final Map<String, JsonValue>_additionalProperties()final ResponseOutputItem.AdditionalTools.BuildertoBuilder()final ResponseOutputItem.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 ResponseOutputItem.AdditionalTools.Builderbuilder()Returns a mutable builder for constructing an instance of AdditionalTools. -
-
Method Detail
-
role
final ResponseOutputItem.AdditionalTools.Role role()
The role that provided the additional tools.
-
_type
final JsonValue _type()
The type of the item. 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).
-
_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.
-
_role
final JsonField<ResponseOutputItem.AdditionalTools.Role> _role()
Returns the raw JSON value of role.
Unlike role, this method doesn't throw if the JSON field has an unexpected type.
-
_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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ResponseOutputItem.AdditionalTools.Builder toBuilder()
-
validate
final ResponseOutputItem.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 ResponseOutputItem.AdditionalTools.Builder builder()
Returns a mutable builder for constructing an instance of AdditionalTools.
The following fields are required:
.id() .role() .tools()
-
-
-
-