Class ResponseCustomToolCallItem.Builder
-
- All Implemented Interfaces:
public final class ResponseCustomToolCallItem.BuilderA builder for ResponseCustomToolCallItem.
-
-
Method Summary
-
-
Method Detail
-
callId
final ResponseCustomToolCallItem.Builder callId(String callId)
An identifier used to map this custom tool call to a tool call output.
-
callId
final ResponseCustomToolCallItem.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.
-
input
final ResponseCustomToolCallItem.Builder input(String input)
The input for the custom tool call generated by the model.
-
input
final ResponseCustomToolCallItem.Builder input(JsonField<String> input)
Sets Builder.input to an arbitrary JSON value.
You should usually call Builder.input 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 ResponseCustomToolCallItem.Builder name(String name)
The name of the custom tool being called.
-
name
final ResponseCustomToolCallItem.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 ResponseCustomToolCallItem.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("custom_tool_call")This method is primarily for setting the field to an undocumented or not yet supported value.
-
id
final ResponseCustomToolCallItem.Builder id(String id)
The unique ID of the custom tool call in the OpenAI platform.
-
id
final ResponseCustomToolCallItem.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.
-
namespace
final ResponseCustomToolCallItem.Builder namespace(String namespace)
The namespace of the custom tool being called.
-
namespace
final ResponseCustomToolCallItem.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 ResponseCustomToolCallItem.Builder status(ResponseCustomToolCallItem.Status status)
The status of the item. One of
in_progress,completed, orincomplete. Populated when items are returned via API.
-
status
final ResponseCustomToolCallItem.Builder status(JsonField<ResponseCustomToolCallItem.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.
-
createdBy
final ResponseCustomToolCallItem.Builder createdBy(String createdBy)
The identifier of the actor that created the item.
-
createdBy
final ResponseCustomToolCallItem.Builder createdBy(JsonField<String> createdBy)
Sets Builder.createdBy to an arbitrary JSON value.
You should usually call Builder.createdBy with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ResponseCustomToolCallItem.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ResponseCustomToolCallItem.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ResponseCustomToolCallItem.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ResponseCustomToolCallItem.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ResponseCustomToolCallItem.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ResponseCustomToolCallItem build()
Returns an immutable instance of ResponseCustomToolCallItem.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.callId() .input() .name() .status()
-
-
-
-