class

Cri::Message

Inherits Reference < Object

Constructors

assistant(content : String | Nil, tool_calls : Array(ToolCall) = [] of ToolCall) : self
Source
from_json(value : JSON::Any) : Message
Source
new(role : String, content : String | Nil = nil, name : String | Nil = nil, tool_call_id : String | Nil = nil, tool_calls : Array(ToolCall) = [] of ToolCall)
Source
tool(call : ToolCall, content : String) : self
Source
user(content : String) : self
Source

Instance methods

content
Source
name
Source
role
Source
to_api_json
Source
tool_call_id
Source
tool_calls
Source