struct AI::OpenAI::ChatAssistantMessage

Overview

Assistant message in chat prompt.

Included Modules

Defined in:

ai/openai/chat/openai_chat_prompt.cr

Constructors

Instance Method Summary

Constructor Detail

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

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

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

[View source]

Instance Method Detail

def content : String | Nil #

[View source]
def role : String #

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

[View source]