Class ResponseFunctionToolCall.Builder
-
- All Implemented Interfaces:
public final class ResponseFunctionToolCall.Builder
A builder for ResponseFunctionToolCall.
-
-
Method Summary
-
-
Method Detail
-
arguments
final ResponseFunctionToolCall.Builder arguments(String arguments)
A JSON string of the arguments to pass to the function.
-
arguments
final ResponseFunctionToolCall.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 ResponseFunctionToolCall.Builder callId(String callId)
The unique ID of the function tool call generated by the model.
-
callId
final ResponseFunctionToolCall.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 ResponseFunctionToolCall.Builder name(String name)
The name of the function to run.
-
name
final ResponseFunctionToolCall.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 ResponseFunctionToolCall.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 ResponseFunctionToolCall.Builder id(String id)
The unique ID of the function tool call.
-
id
final ResponseFunctionToolCall.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.
-
status
final ResponseFunctionToolCall.Builder status(ResponseFunctionToolCall.Status status)
The status of the item. One of
in_progress
,completed
, orincomplete
. Populated when items are returned via API.
-
status
final ResponseFunctionToolCall.Builder status(JsonField<ResponseFunctionToolCall.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 ResponseFunctionToolCall.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseFunctionToolCall.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseFunctionToolCall.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseFunctionToolCall.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseFunctionToolCall.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseFunctionToolCall build()
Returns an immutable instance of ResponseFunctionToolCall.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.arguments() .callId() .name()
-
-
-
-