Class: OpenAI::Models::Beta::ChatKit::ChatKitThreadItemList::Data::ChatKitClientToolCall

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb

Defined Under Namespace

Modules: Status

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(id:, arguments:, call_id:, created_at:, name:, output:, status:, thread_id:, object: :"chatkit.thread_item", type: :"chatkit.client_tool_call") ⇒ Object

Some parameter documentations has been truncated, see OpenAI::Models::Beta::ChatKit::ChatKitThreadItemList::Data::ChatKitClientToolCall for more details.

Record of a client side tool invocation initiated by the assistant.

Parameters:

  • Identifier of the thread item.

  • JSON-encoded arguments that were sent to the tool.

  • Identifier for the client tool call.

  • Unix timestamp (in seconds) for when the item was created.

  • Tool name that was invoked.

  • JSON-encoded output captured from the tool. Defaults to null while execution is

  • Execution status for the tool call.

  • Identifier of the parent thread.

  • (defaults to: :"chatkit.thread_item")

    Type discriminator that is always chatkit.thread_item.

  • (defaults to: :"chatkit.client_tool_call")

    Type discriminator that is always chatkit.client_tool_call.



# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 140


Instance Attribute Details

#argumentsString

JSON-encoded arguments that were sent to the tool.

Returns:



88
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 88

required :arguments, String

#call_idString

Identifier for the client tool call.

Returns:



94
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 94

required :call_id, String

#created_atInteger

Unix timestamp (in seconds) for when the item was created.

Returns:



100
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 100

required :created_at, Integer

#idString

Identifier of the thread item.

Returns:



82
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 82

required :id, String

#nameString

Tool name that was invoked.

Returns:



106
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 106

required :name, String

#objectSymbol, :"chatkit.thread_item"

Type discriminator that is always chatkit.thread_item.

Returns:



112
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 112

required :object, const: :"chatkit.thread_item"

#outputString?

JSON-encoded output captured from the tool. Defaults to null while execution is in progress.

Returns:



119
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 119

required :output, String, nil?: true

#statusSymbol, OpenAI::Models::Beta::ChatKit::ChatKitThreadItemList::Data::ChatKitClientToolCall::Status

Execution status for the tool call.

Returns:



125
126
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 125

required :status,
enum: -> { OpenAI::Beta::ChatKit::ChatKitThreadItemList::Data::ChatKitClientToolCall::Status }

#thread_idString

Identifier of the parent thread.

Returns:



132
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 132

required :thread_id, String

#typeSymbol, :"chatkit.client_tool_call"

Type discriminator that is always chatkit.client_tool_call.

Returns:



138
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 138

required :type, const: :"chatkit.client_tool_call"