Class BetaResponseToolSearchCall
-
- All Implemented Interfaces:
public final class BetaResponseToolSearchCall
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseToolSearchCall.BuilderA builder for BetaResponseToolSearchCall.
public final classBetaResponseToolSearchCall.ExecutionWhether tool search was executed by the server or by the client.
public final classBetaResponseToolSearchCall.StatusThe status of the tool search call item that was recorded.
public final classBetaResponseToolSearchCall.AgentThe agent that produced this item.
-
Method Summary
Modifier and Type Method Description final Stringid()The unique ID of the tool search call item. final JsonValue_arguments()Arguments used for the tool search call. final Optional<String>callId()The unique ID of the tool search call generated by the model. final BetaResponseToolSearchCall.Executionexecution()Whether tool search was executed by the server or by the client. final BetaResponseToolSearchCall.Statusstatus()The status of the tool search call item that was recorded. final JsonValue_type()The type of the item. final Optional<BetaResponseToolSearchCall.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<BetaResponseToolSearchCall.Execution>_execution()Returns the raw JSON value of execution. final JsonField<BetaResponseToolSearchCall.Status>_status()Returns the raw JSON value of status. final JsonField<BetaResponseToolSearchCall.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 BetaResponseToolSearchCall.BuildertoBuilder()final BetaResponseToolSearchCallvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseToolSearchCall.Builderbuilder()Returns a mutable builder for constructing an instance of BetaResponseToolSearchCall. -
-
Method Detail
-
_arguments
final JsonValue _arguments()
Arguments used for the tool search call.
This arbitrary value can be deserialized into a custom type using the
convertmethod:MyClass myObject = betaResponseToolSearchCall.arguments().convert(MyClass.class);
-
callId
final Optional<String> callId()
The unique ID of the tool search call generated by the model.
-
execution
final BetaResponseToolSearchCall.Execution execution()
Whether tool search was executed by the server or by the client.
-
status
final BetaResponseToolSearchCall.Status status()
The status of the tool search call item that was recorded.
-
_type
final JsonValue _type()
The type of the item. 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<BetaResponseToolSearchCall.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<BetaResponseToolSearchCall.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<BetaResponseToolSearchCall.Status> _status()
Returns the raw JSON value of status.
Unlike status, this method doesn't throw if the JSON field has an unexpected type.
-
_agent
final JsonField<BetaResponseToolSearchCall.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 BetaResponseToolSearchCall.Builder toBuilder()
-
validate
final BetaResponseToolSearchCall 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 BetaResponseToolSearchCall.Builder builder()
Returns a mutable builder for constructing an instance of BetaResponseToolSearchCall.
The following fields are required:
.id() .arguments() .callId() .execution() .status()
-
-
-
-