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