Class: OpenAI::Models::Beta::ChatKit::ChatKitThreadItemList::Data::ChatKitClientToolCall
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::ChatKit::ChatKitThreadItemList::Data::ChatKitClientToolCall
- Defined in:
- lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb,
sig/openai/models/beta/chatkit/chatkit_thread_item_list.rbs
Defined Under Namespace
Modules: Status
Instance Attribute Summary collapse
-
#arguments ⇒ String
JSON-encoded arguments that were sent to the tool.
-
#call_id ⇒ String
Identifier for the client tool call.
-
#created_at ⇒ Integer
Unix timestamp (in seconds) for when the item was created.
-
#id ⇒ String
Identifier of the thread item.
-
#name ⇒ String
Tool name that was invoked.
-
#object ⇒ Symbol, :"chatkit.thread_item"
Type discriminator that is always
chatkit.thread_item. -
#output ⇒ String?
JSON-encoded output captured from the tool.
-
#status ⇒ Symbol, OpenAI::Models::Beta::ChatKit::ChatKitThreadItemList::Data::ChatKitClientToolCall::Status
Execution status for the tool call.
-
#thread_id ⇒ String
Identifier of the parent thread.
-
#type ⇒ Symbol, :"chatkit.client_tool_call"
Type discriminator that is always
chatkit.client_tool_call.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
-
#initialize(id:, arguments:, call_id:, created_at:, name:, output:, status:, thread_id:, object: :"chatkit.thread_item", type: :"chatkit.client_tool_call") ⇒ Object
constructor
Some parameter documentations has been truncated, see ChatKitClientToolCall for more details.
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, 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, coerce_with_error, #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.
|
|
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 146
|
Instance Attribute Details
#arguments ⇒ String
JSON-encoded arguments that were sent to the tool.
92 |
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 92 required :arguments, String |
#call_id ⇒ String
Identifier for the client tool call.
98 |
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 98 required :call_id, String |
#created_at ⇒ Integer
Unix timestamp (in seconds) for when the item was created.
104 |
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 104 required :created_at, Integer |
#id ⇒ String
Identifier of the thread item.
86 |
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 86 required :id, String |
#name ⇒ String
Tool name that was invoked.
110 |
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 110 required :name, String |
#object ⇒ Symbol, :"chatkit.thread_item"
Type discriminator that is always chatkit.thread_item.
116 |
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 116 required :object, const: :"chatkit.thread_item" |
#output ⇒ String?
JSON-encoded output captured from the tool. Defaults to null while execution is in progress.
123 |
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 123 required :output, String, nil?: true |
#status ⇒ Symbol, OpenAI::Models::Beta::ChatKit::ChatKitThreadItemList::Data::ChatKitClientToolCall::Status
Execution status for the tool call.
129 130 131 132 |
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 129 required( :status, enum: -> { OpenAI::Beta::ChatKit::ChatKitThreadItemList::Data::ChatKitClientToolCall::Status } ) |
#thread_id ⇒ String
Identifier of the parent thread.
138 |
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 138 required :thread_id, String |
#type ⇒ Symbol, :"chatkit.client_tool_call"
Type discriminator that is always chatkit.client_tool_call.
144 |
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 144 required :type, const: :"chatkit.client_tool_call" |
Instance Method Details
#to_hash ⇒ {
102 |
# File 'sig/openai/models/beta/chatkit/chatkit_thread_item_list.rbs', line 102
def to_hash: -> {
|