struct OpenAI::ChatCompletionStreamChoiceDelta

Included Modules

Extended Modules

Defined in:

openai/api/chat.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(role : ChatMessageRole | Nil, content : String | Nil, function_call : ChatFunctionCall | Nil) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def clone #

[View source]
def content : String | Nil #

def copy_with(role _role = @role, content _content = @content, function_call _function_call = @function_call) #

[View source]
def function_call : ChatFunctionCall | Nil #

def role : ChatMessageRole | Nil #