Class BetaResponseToolSearchOutputItem
-
- All Implemented Interfaces:
public final class BetaResponseToolSearchOutputItem
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseToolSearchOutputItem.BuilderA builder for BetaResponseToolSearchOutputItem.
public final classBetaResponseToolSearchOutputItem.ExecutionWhether tool search was executed by the server or by the client.
public final classBetaResponseToolSearchOutputItem.StatusThe status of the tool search output item that was recorded.
public final classBetaResponseToolSearchOutputItem.AgentThe agent that produced this item.
-
Method Summary
Modifier and Type Method Description final Stringid()The unique ID of the tool search output item. final Optional<String>callId()The unique ID of the tool search call generated by the model. final BetaResponseToolSearchOutputItem.Executionexecution()Whether tool search was executed by the server or by the client. final BetaResponseToolSearchOutputItem.Statusstatus()The status of the tool search output item that was recorded. final List<BetaTool>tools()The loaded tool definitions returned by tool search. final JsonValue_type()The type of the item. final Optional<BetaResponseToolSearchOutputItem.Agent>agent()The agent that produced this item. final Optional<String>createdBy()The identifier of the actor that created the item. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_callId()Returns the raw JSON value of callId. final JsonField<BetaResponseToolSearchOutputItem.Execution>_execution()Returns the raw JSON value of execution. final JsonField<BetaResponseToolSearchOutputItem.Status>_status()Returns the raw JSON value of status. final JsonField<List<BetaTool>>_tools()Returns the raw JSON value of tools. final JsonField<BetaResponseToolSearchOutputItem.Agent>_agent()Returns the raw JSON value of agent. final JsonField<String>_createdBy()Returns the raw JSON value of createdBy. final Map<String, JsonValue>_additionalProperties()final BetaResponseToolSearchOutputItem.BuildertoBuilder()final BetaResponseToolSearchOutputItemvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseToolSearchOutputItem.Builderbuilder()Returns a mutable builder for constructing an instance of BetaResponseToolSearchOutputItem. -
-
Method Detail
-
callId
final Optional<String> callId()
The unique ID of the tool search call generated by the model.
-
execution
final BetaResponseToolSearchOutputItem.Execution execution()
Whether tool search was executed by the server or by the client.
-
status
final BetaResponseToolSearchOutputItem.Status status()
The status of the tool search output item that was recorded.
-
_type
final JsonValue _type()
The type of the item. Always
tool_search_output.Expected to always return the following:
JsonValue.from("tool_search_output")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
agent
final Optional<BetaResponseToolSearchOutputItem.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.
-
_callId
final JsonField<String> _callId()
Returns the raw JSON value of callId.
Unlike callId, this method doesn't throw if the JSON field has an unexpected type.
-
_execution
final JsonField<BetaResponseToolSearchOutputItem.Execution> _execution()
Returns the raw JSON value of execution.
Unlike execution, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<BetaResponseToolSearchOutputItem.Status> _status()
Returns the raw JSON value of status.
Unlike status, 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<BetaResponseToolSearchOutputItem.Agent> _agent()
Returns the raw JSON value of agent.
Unlike agent, this method doesn't throw if the JSON field has an unexpected type.
-
_createdBy
final JsonField<String> _createdBy()
Returns the raw JSON value of createdBy.
Unlike createdBy, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponseToolSearchOutputItem.Builder toBuilder()
-
validate
final BetaResponseToolSearchOutputItem 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 BetaResponseToolSearchOutputItem.Builder builder()
Returns a mutable builder for constructing an instance of BetaResponseToolSearchOutputItem.
The following fields are required:
.id() .callId() .execution() .status() .tools()
-
-
-
-