struct OpenAI::ChatCompletionStreamChoiceDelta
- OpenAI::ChatCompletionStreamChoiceDelta
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Extended Modules
- JSON::Schema
Defined in:
openai/api/chat.crConstructors
- .new(role : ChatMessageRole | Nil, content : String | Nil, function_call : ChatFunctionCall | Nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
- #clone
- #content : String | Nil
- #copy_with(role _role = @role, content _content = @content, function_call _function_call = @function_call)
- #function_call : ChatFunctionCall | Nil
- #role : ChatMessageRole | Nil
Constructor Detail
def self.new(role : ChatMessageRole | Nil, content : String | Nil, function_call : ChatFunctionCall | Nil)
#
Instance Method Detail
def copy_with(role _role = @role, content _content = @content, function_call _function_call = @function_call)
#