Class ConversationItem.AdditionalTools
-
- All Implemented Interfaces:
public final class ConversationItem.AdditionalTools
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classConversationItem.AdditionalTools.BuilderA builder for AdditionalTools.
public final classConversationItem.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 ConversationItem.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<ConversationItem.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 ConversationItem.AdditionalTools.BuildertoBuilder()final ConversationItem.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 ConversationItem.AdditionalTools.Builderbuilder()Returns a mutable builder for constructing an instance of AdditionalTools. -
-
Method Detail
-
role
final ConversationItem.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<ConversationItem.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 ConversationItem.AdditionalTools.Builder toBuilder()
-
validate
final ConversationItem.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 ConversationItem.AdditionalTools.Builder builder()
Returns a mutable builder for constructing an instance of AdditionalTools.
The following fields are required:
.id() .role() .tools()
-
-
-
-