Class BetaResponseCustomToolCall
-
- All Implemented Interfaces:
public final class BetaResponseCustomToolCallA call to a custom tool created by the model.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseCustomToolCall.BuilderA builder for BetaResponseCustomToolCall.
public final classBetaResponseCustomToolCall.AgentThe agent that produced this item.
public final classBetaResponseCustomToolCall.CallerThe execution context that produced this tool call.
-
Method Summary
Modifier and Type Method Description final StringcallId()An identifier used to map this custom tool call to a tool call output. final Stringinput()The input for the custom tool call generated by the model. final Stringname()The name of the custom tool being called. final JsonValue_type()The type of the custom tool call. final Optional<String>id()The unique ID of the custom tool call in the OpenAI platform. final Optional<BetaResponseCustomToolCall.Agent>agent()The agent that produced this item. final Optional<BetaResponseCustomToolCall.Caller>caller()The execution context that produced this tool call. final Optional<String>namespace()The namespace of the custom tool being called. final JsonField<String>_callId()Returns the raw JSON value of callId. final JsonField<String>_input()Returns the raw JSON value of input. final JsonField<String>_name()Returns the raw JSON value of name. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<BetaResponseCustomToolCall.Agent>_agent()Returns the raw JSON value of agent. final JsonField<BetaResponseCustomToolCall.Caller>_caller()Returns the raw JSON value of caller. final JsonField<String>_namespace()Returns the raw JSON value of namespace. final Map<String, JsonValue>_additionalProperties()final BetaResponseCustomToolCall.BuildertoBuilder()final BetaResponseCustomToolCallvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaResponseCustomToolCall.Builderbuilder()Returns a mutable builder for constructing an instance of BetaResponseCustomToolCall. -
-
Method Detail
-
_type
final JsonValue _type()
The type of the custom tool call. Always
custom_tool_call.Expected to always return the following:
JsonValue.from("custom_tool_call")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
agent
final Optional<BetaResponseCustomToolCall.Agent> agent()
The agent that produced this item.
-
caller
final Optional<BetaResponseCustomToolCall.Caller> caller()
The execution context that produced this tool call.
-
_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.
-
_input
final JsonField<String> _input()
Returns the raw JSON value of input.
Unlike input, this method doesn't throw if the JSON field has an unexpected type.
-
_name
final JsonField<String> _name()
Returns the raw JSON value of name.
Unlike name, this method doesn't throw if the JSON field has an unexpected type.
-
_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<BetaResponseCustomToolCall.Agent> _agent()
Returns the raw JSON value of agent.
Unlike agent, this method doesn't throw if the JSON field has an unexpected type.
-
_caller
final JsonField<BetaResponseCustomToolCall.Caller> _caller()
Returns the raw JSON value of caller.
Unlike caller, this method doesn't throw if the JSON field has an unexpected type.
-
_namespace
final JsonField<String> _namespace()
Returns the raw JSON value of namespace.
Unlike namespace, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final BetaResponseCustomToolCall.Builder toBuilder()
-
validate
final BetaResponseCustomToolCall 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 BetaResponseCustomToolCall.Builder builder()
Returns a mutable builder for constructing an instance of BetaResponseCustomToolCall.
The following fields are required:
.callId() .input() .name()
-
-
-
-