Class: OpenAI::Models::Chat::ChatCompletionChunk::Choice::Delta
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Chat::ChatCompletionChunk::Choice::Delta
- Defined in:
- lib/openai/models/chat/chat_completion_chunk.rb
Overview
Defined Under Namespace
Modules: Role Classes: FunctionCall, ToolCall
Instance Attribute Summary collapse
-
#content ⇒ String?
The contents of the chunk message.
- #function_call ⇒ OpenAI::Models::Chat::ChatCompletionChunk::Choice::Delta::FunctionCall? deprecated Deprecated.
-
#refusal ⇒ String?
The refusal message generated by the model.
-
#role ⇒ Symbol, ...
The role of the author of this message.
- #tool_calls ⇒ Array<OpenAI::Models::Chat::ChatCompletionChunk::Choice::Delta::ToolCall>?
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(arguments: nil, name: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see FunctionCall for more details.
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, 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(arguments: nil, name: nil) ⇒ Object
Some parameter documentations has been truncated, see FunctionCall for more details.
Deprecated and replaced by ‘tool_calls`. The name and arguments of a function that should be called, as generated by the model.
|
# File 'lib/openai/models/chat/chat_completion_chunk.rb', line 189
|
Instance Attribute Details
#content ⇒ String?
The contents of the chunk message.
158 |
# File 'lib/openai/models/chat/chat_completion_chunk.rb', line 158 optional :content, String, nil?: true |
#function_call ⇒ OpenAI::Models::Chat::ChatCompletionChunk::Choice::Delta::FunctionCall?
Deprecated and replaced by ‘tool_calls`. The name and arguments of a function that should be called, as generated by the model.
167 |
# File 'lib/openai/models/chat/chat_completion_chunk.rb', line 167 optional :function_call, -> { OpenAI::Chat::ChatCompletionChunk::Choice::Delta::FunctionCall } |
#refusal ⇒ String?
The refusal message generated by the model.
173 |
# File 'lib/openai/models/chat/chat_completion_chunk.rb', line 173 optional :refusal, String, nil?: true |
Class Method Details
.values ⇒ Array<Symbol>
|
# File 'lib/openai/models/chat/chat_completion_chunk.rb', line 249
|