Class BetaResponseInputItem.AdditionalTools
-
- All Implemented Interfaces:
public final class BetaResponseInputItem.AdditionalTools
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseInputItem.AdditionalTools.BuilderA builder for AdditionalTools.
public final classBetaResponseInputItem.AdditionalTools.AgentThe agent that produced this item.
-
Method Summary
Modifier and Type Method Description final JsonValue_role()The role that provided the additional tools. final List<BetaTool>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 Optional<BetaResponseInputItem.AdditionalTools.Agent>agent()The agent that produced this item. final JsonField<List<BetaTool>>_tools()Returns the raw JSON value of tools. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<BetaResponseInputItem.AdditionalTools.Agent>_agent()Returns the raw JSON value of agent. final Map<String, JsonValue>_additionalProperties()final BetaResponseInputItem.AdditionalTools.BuildertoBuilder()final BetaResponseInputItem.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 BetaResponseInputItem.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).
-
agent
final Optional<BetaResponseInputItem.AdditionalTools.Agent> agent()
The agent that produced this item.
-
_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.
-
_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.
-
_agent
final JsonField<BetaResponseInputItem.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 BetaResponseInputItem.AdditionalTools.Builder toBuilder()
-
validate
final BetaResponseInputItem.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 BetaResponseInputItem.AdditionalTools.Builder builder()
Returns a mutable builder for constructing an instance of AdditionalTools.
The following fields are required:
.tools()
-
-
-
-