Class ChatKitThreadItemList.Data.ChatKitClientToolCall.Builder
-
- All Implemented Interfaces:
public final class ChatKitThreadItemList.Data.ChatKitClientToolCall.Builder
A builder for ChatKitClientToolCall.
-
-
Method Summary
-
-
Method Detail
-
id
final ChatKitThreadItemList.Data.ChatKitClientToolCall.Builder id(String id)
Identifier of the thread item.
-
id
final ChatKitThreadItemList.Data.ChatKitClientToolCall.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.
-
arguments
final ChatKitThreadItemList.Data.ChatKitClientToolCall.Builder arguments(String arguments)
JSON-encoded arguments that were sent to the tool.
-
arguments
final ChatKitThreadItemList.Data.ChatKitClientToolCall.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 ChatKitThreadItemList.Data.ChatKitClientToolCall.Builder callId(String callId)
Identifier for the client tool call.
-
callId
final ChatKitThreadItemList.Data.ChatKitClientToolCall.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.
-
createdAt
final ChatKitThreadItemList.Data.ChatKitClientToolCall.Builder createdAt(Long createdAt)
Unix timestamp (in seconds) for when the item was created.
-
createdAt
final ChatKitThreadItemList.Data.ChatKitClientToolCall.Builder createdAt(JsonField<Long> createdAt)
Sets Builder.createdAt to an arbitrary JSON value.
You should usually call Builder.createdAt with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
name
final ChatKitThreadItemList.Data.ChatKitClientToolCall.Builder name(String name)
Tool name that was invoked.
-
name
final ChatKitThreadItemList.Data.ChatKitClientToolCall.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.
-
object_
final ChatKitThreadItemList.Data.ChatKitClientToolCall.Builder object_(JsonValue object_)
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("chatkit.thread_item")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
output
final ChatKitThreadItemList.Data.ChatKitClientToolCall.Builder output(String output)
JSON-encoded output captured from the tool. Defaults to null while execution is in progress.
-
output
final ChatKitThreadItemList.Data.ChatKitClientToolCall.Builder output(Optional<String> output)
Alias for calling Builder.output with
output.orElse(null)
.
-
output
final ChatKitThreadItemList.Data.ChatKitClientToolCall.Builder output(JsonField<String> output)
Sets Builder.output to an arbitrary JSON value.
You should usually call Builder.output 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 ChatKitThreadItemList.Data.ChatKitClientToolCall.Builder status(ChatKitThreadItemList.Data.ChatKitClientToolCall.Status status)
Execution status for the tool call.
-
status
final ChatKitThreadItemList.Data.ChatKitClientToolCall.Builder status(JsonField<ChatKitThreadItemList.Data.ChatKitClientToolCall.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.
-
threadId
final ChatKitThreadItemList.Data.ChatKitClientToolCall.Builder threadId(String threadId)
Identifier of the parent thread.
-
threadId
final ChatKitThreadItemList.Data.ChatKitClientToolCall.Builder threadId(JsonField<String> threadId)
Sets Builder.threadId to an arbitrary JSON value.
You should usually call Builder.threadId 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 ChatKitThreadItemList.Data.ChatKitClientToolCall.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("chatkit.client_tool_call")
This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ChatKitThreadItemList.Data.ChatKitClientToolCall.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ChatKitThreadItemList.Data.ChatKitClientToolCall.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ChatKitThreadItemList.Data.ChatKitClientToolCall.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ChatKitThreadItemList.Data.ChatKitClientToolCall.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ChatKitThreadItemList.Data.ChatKitClientToolCall.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ChatKitThreadItemList.Data.ChatKitClientToolCall build()
Returns an immutable instance of ChatKitClientToolCall.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.id() .arguments() .callId() .createdAt() .name() .output() .status() .threadId()
-
-
-
-