Class BetaResponseInputItem.ToolSearchCall
-
- All Implemented Interfaces:
public final class BetaResponseInputItem.ToolSearchCall
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseInputItem.ToolSearchCall.BuilderA builder for ToolSearchCall.
public final classBetaResponseInputItem.ToolSearchCall.AgentThe agent that produced this item.
public final classBetaResponseInputItem.ToolSearchCall.ExecutionWhether tool search was executed by the server or by the client.
public final classBetaResponseInputItem.ToolSearchCall.StatusThe status of the tool search call.
-
Method Summary
Modifier and Type Method Description final JsonValue_arguments()The arguments supplied to the tool search call. final JsonValue_type()The item type. final Optional<String>id()The unique ID of this tool search call. final Optional<BetaResponseInputItem.ToolSearchCall.Agent>agent()The agent that produced this item. final Optional<String>callId()The unique ID of the tool search call generated by the model. final Optional<BetaResponseInputItem.ToolSearchCall.Execution>execution()Whether tool search was executed by the server or by the client. final Optional<BetaResponseInputItem.ToolSearchCall.Status>status()The status of the tool search call. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<BetaResponseInputItem.ToolSearchCall.Agent>_agent()Returns the raw JSON value of agent. final JsonField<String>_callId()Returns the raw JSON value of callId. final JsonField<BetaResponseInputItem.ToolSearchCall.Execution>_execution()Returns the raw JSON value of execution. final JsonField<BetaResponseInputItem.ToolSearchCall.Status>_status()Returns the raw JSON value of status. final Map<String, JsonValue>_additionalProperties()final BetaResponseInputItem.ToolSearchCall.BuildertoBuilder()final BetaResponseInputItem.ToolSearchCallvalidate()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.ToolSearchCall.Builderbuilder()Returns a mutable builder for constructing an instance of ToolSearchCall. -
-
Method Detail
-
_arguments
final JsonValue _arguments()
The arguments supplied to the tool search call.
This arbitrary value can be deserialized into a custom type using the
convertmethod:MyClass myObject = toolSearchCall.arguments().convert(MyClass.class);
-
_type
final JsonValue _type()
The item type. Always
tool_search_call.Expected to always return the following:
JsonValue.from("tool_search_call")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
agent
final Optional<BetaResponseInputItem.ToolSearchCall.Agent> agent()
The agent that produced this item.
-
callId
final Optional<String> callId()
The unique ID of the tool search call generated by the model.
-
execution
final Optional<BetaResponseInputItem.ToolSearchCall.Execution> execution()
Whether tool search was executed by the server or by the client.
-
status
final Optional<BetaResponseInputItem.ToolSearchCall.Status> status()
The status of the tool search call.
-
_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.ToolSearchCall.Agent> _agent()
Returns the raw JSON value of agent.
Unlike agent, 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<BetaResponseInputItem.ToolSearchCall.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<BetaResponseInputItem.ToolSearchCall.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponseInputItem.ToolSearchCall.Builder toBuilder()
-
validate
final BetaResponseInputItem.ToolSearchCall 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.ToolSearchCall.Builder builder()
Returns a mutable builder for constructing an instance of ToolSearchCall.
The following fields are required:
.arguments()
-
-
-
-