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