Class ResponseInputItem.ToolSearchCall
-
- All Implemented Interfaces:
public final class ResponseInputItem.ToolSearchCall
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classResponseInputItem.ToolSearchCall.BuilderA builder for ToolSearchCall.
public final classResponseInputItem.ToolSearchCall.ExecutionWhether tool search was executed by the server or by the client.
public final classResponseInputItem.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<String>callId()The unique ID of the tool search call generated by the model. final Optional<ResponseInputItem.ToolSearchCall.Execution>execution()Whether tool search was executed by the server or by the client. final Optional<ResponseInputItem.ToolSearchCall.Status>status()The status of the tool search call. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<String>_callId()Returns the raw JSON value of callId. final JsonField<ResponseInputItem.ToolSearchCall.Execution>_execution()Returns the raw JSON value of execution. final JsonField<ResponseInputItem.ToolSearchCall.Status>_status()Returns the raw JSON value of status. final Map<String, JsonValue>_additionalProperties()final ResponseInputItem.ToolSearchCall.BuildertoBuilder()final ResponseInputItem.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 ResponseInputItem.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).
-
callId
final Optional<String> callId()
The unique ID of the tool search call generated by the model.
-
execution
final Optional<ResponseInputItem.ToolSearchCall.Execution> execution()
Whether tool search was executed by the server or by the client.
-
status
final Optional<ResponseInputItem.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.
-
_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<ResponseInputItem.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<ResponseInputItem.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 ResponseInputItem.ToolSearchCall.Builder toBuilder()
-
validate
final ResponseInputItem.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 ResponseInputItem.ToolSearchCall.Builder builder()
Returns a mutable builder for constructing an instance of ToolSearchCall.
The following fields are required:
.arguments()
-
-
-
-