Class BetaResponseInputItem.FunctionCallOutput
-
- All Implemented Interfaces:
public final class BetaResponseInputItem.FunctionCallOutputThe output of a function tool call.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classBetaResponseInputItem.FunctionCallOutput.BuilderA builder for FunctionCallOutput.
public final classBetaResponseInputItem.FunctionCallOutput.OutputText, image, or file output of the function tool call.
public final classBetaResponseInputItem.FunctionCallOutput.AgentThe agent that produced this item.
public final classBetaResponseInputItem.FunctionCallOutput.CallerThe execution context that produced this tool call.
public final classBetaResponseInputItem.FunctionCallOutput.StatusThe status of the item. One of
in_progress,completed, orincomplete. Populated when items are returned via API.
-
Method Summary
Modifier and Type Method Description final StringcallId()The unique ID of the function tool call generated by the model. final BetaResponseInputItem.FunctionCallOutput.Outputoutput()Text, image, or file output of the function tool call. final JsonValue_type()The type of the function tool call output. final Optional<String>id()The unique ID of the function tool call output. final Optional<BetaResponseInputItem.FunctionCallOutput.Agent>agent()The agent that produced this item. final Optional<BetaResponseInputItem.FunctionCallOutput.Caller>caller()The execution context that produced this tool call. final Optional<BetaResponseInputItem.FunctionCallOutput.Status>status()The status of the item. final JsonField<String>_callId()Returns the raw JSON value of callId. final JsonField<BetaResponseInputItem.FunctionCallOutput.Output>_output()Returns the raw JSON value of output. final JsonField<String>_id()Returns the raw JSON value of id. final JsonField<BetaResponseInputItem.FunctionCallOutput.Agent>_agent()Returns the raw JSON value of agent. final JsonField<BetaResponseInputItem.FunctionCallOutput.Caller>_caller()Returns the raw JSON value of caller. final JsonField<BetaResponseInputItem.FunctionCallOutput.Status>_status()Returns the raw JSON value of status. final Map<String, JsonValue>_additionalProperties()final BetaResponseInputItem.FunctionCallOutput.BuildertoBuilder()final BetaResponseInputItem.FunctionCallOutputvalidate()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.FunctionCallOutput.Builderbuilder()Returns a mutable builder for constructing an instance of FunctionCallOutput. -
-
Method Detail
-
output
final BetaResponseInputItem.FunctionCallOutput.Output output()
Text, image, or file output of the function tool call.
-
_type
final JsonValue _type()
The type of the function tool call output. Always
function_call_output.Expected to always return the following:
JsonValue.from("function_call_output")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
id
final Optional<String> id()
The unique ID of the function tool call output. Populated when this item is returned via API.
-
agent
final Optional<BetaResponseInputItem.FunctionCallOutput.Agent> agent()
The agent that produced this item.
-
caller
final Optional<BetaResponseInputItem.FunctionCallOutput.Caller> caller()
The execution context that produced this tool call.
-
status
final Optional<BetaResponseInputItem.FunctionCallOutput.Status> status()
The status of the item. One of
in_progress,completed, orincomplete. Populated when items are returned via API.
-
_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.
-
_output
final JsonField<BetaResponseInputItem.FunctionCallOutput.Output> _output()
Returns the raw JSON value of output.
Unlike output, 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<BetaResponseInputItem.FunctionCallOutput.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<BetaResponseInputItem.FunctionCallOutput.Caller> _caller()
Returns the raw JSON value of caller.
Unlike caller, this method doesn't throw if the JSON field has an unexpected type.
-
_status
final JsonField<BetaResponseInputItem.FunctionCallOutput.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.FunctionCallOutput.Builder toBuilder()
-
validate
final BetaResponseInputItem.FunctionCallOutput 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.FunctionCallOutput.Builder builder()
Returns a mutable builder for constructing an instance of FunctionCallOutput.
The following fields are required:
.callId() .output()
-
-
-
-