struct AI::OpenAI::OpenAIChatResponseMessage

Overview

Message in response choice.

Included Modules

Defined in:

ai/openai/chat/openai_chat_api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(role : String | Nil = nil, content : String | Nil = nil, tool_calls : Array(OpenAIChatResponseToolCall) | Nil = nil, annotations : Array(OpenAIChatAnnotation) | Nil = nil) #

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

[View source]

Instance Method Detail

def annotations : Array(OpenAIChatAnnotation) | Nil #

[View source]
def content : String | Nil #

[View source]
def role : String | Nil #

[View source]
def tool_calls : Array(OpenAIChatResponseToolCall) | Nil #

[View source]