Class BetaResponseFunctionToolCall.Builder
-
- All Implemented Interfaces:
public final class BetaResponseFunctionToolCall.BuilderA builder for BetaResponseFunctionToolCall.
-
-
Method Summary
-
-
Method Detail
-
arguments
final BetaResponseFunctionToolCall.Builder arguments(String arguments)
A JSON string of the arguments to pass to the function.
-
arguments
final BetaResponseFunctionToolCall.Builder arguments(JsonField<String> arguments)
Sets Builder.arguments to an arbitrary JSON value.
You should usually call Builder.arguments with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
callId
final BetaResponseFunctionToolCall.Builder callId(String callId)
The unique ID of the function tool call generated by the model.
-
callId
final BetaResponseFunctionToolCall.Builder callId(JsonField<String> callId)
Sets Builder.callId to an arbitrary JSON value.
You should usually call Builder.callId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final BetaResponseFunctionToolCall.Builder name(String name)
The name of the function to run.
-
name
final BetaResponseFunctionToolCall.Builder name(JsonField<String> name)
Sets Builder.name to an arbitrary JSON value.
You should usually call Builder.name with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
type
final BetaResponseFunctionToolCall.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("function_call")This method is primarily for setting the field to an undocumented or not yet supported value.
-
id
final BetaResponseFunctionToolCall.Builder id(String id)
The unique ID of the function tool call.
-
id
final BetaResponseFunctionToolCall.Builder id(JsonField<String> id)
Sets Builder.id to an arbitrary JSON value.
You should usually call Builder.id with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
agent
final BetaResponseFunctionToolCall.Builder agent(BetaResponseFunctionToolCall.Agent agent)
The agent that produced this item.
-
agent
final BetaResponseFunctionToolCall.Builder agent(Optional<BetaResponseFunctionToolCall.Agent> agent)
Alias for calling Builder.agent with
agent.orElse(null).
-
agent
final BetaResponseFunctionToolCall.Builder agent(JsonField<BetaResponseFunctionToolCall.Agent> agent)
Sets Builder.agent to an arbitrary JSON value.
You should usually call Builder.agent with a well-typed Agent value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
caller
final BetaResponseFunctionToolCall.Builder caller(BetaResponseFunctionToolCall.Caller caller)
The execution context that produced this tool call.
-
caller
final BetaResponseFunctionToolCall.Builder caller(Optional<BetaResponseFunctionToolCall.Caller> caller)
Alias for calling Builder.caller with
caller.orElse(null).
-
caller
final BetaResponseFunctionToolCall.Builder caller(JsonField<BetaResponseFunctionToolCall.Caller> caller)
Sets Builder.caller to an arbitrary JSON value.
You should usually call Builder.caller with a well-typed Caller value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
caller
final BetaResponseFunctionToolCall.Builder caller(BetaResponseFunctionToolCall.Caller.Program program)
Alias for calling caller with
Caller.ofProgram(program).
-
callerDirect
final BetaResponseFunctionToolCall.Builder callerDirect()
Alias for calling caller with
Caller.ofDirect().
-
programCaller
final BetaResponseFunctionToolCall.Builder programCaller(String callerId)
Alias for calling caller with the following:
Caller.Program.builder() .callerId(callerId) .build()
-
namespace
final BetaResponseFunctionToolCall.Builder namespace(String namespace)
The namespace of the function to run.
-
namespace
final BetaResponseFunctionToolCall.Builder namespace(JsonField<String> namespace)
Sets Builder.namespace to an arbitrary JSON value.
You should usually call Builder.namespace with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
status
final BetaResponseFunctionToolCall.Builder status(BetaResponseFunctionToolCall.Status status)
The status of the item. One of
in_progress,completed, orincomplete. Populated when items are returned via API.
-
status
final BetaResponseFunctionToolCall.Builder status(JsonField<BetaResponseFunctionToolCall.Status> status)
Sets Builder.status to an arbitrary JSON value.
You should usually call Builder.status with a well-typed Status value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaResponseFunctionToolCall.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponseFunctionToolCall.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponseFunctionToolCall.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponseFunctionToolCall.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponseFunctionToolCall.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponseFunctionToolCall build()
Returns an immutable instance of BetaResponseFunctionToolCall.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.arguments() .callId() .name()
-
-
-
-