struct

Crig::Providers::Mistral::Message

Inherits Struct < Value < Object

Constructors

assistant(content : String, tool_calls : Array(ToolCall) = [] of ToolCall, prefix : Bool = false) : self
Source
from_json_value(value : JSON::Any) : self
Source
new(kind : Kind, content : String, tool_calls : Array(ToolCall) = [] of ToolCall, prefix : Bool = false, name : String | Nil = nil, tool_call_id : String | Nil = nil)
Source
system(content : String) : self
Source
tool(name : String, content : String, tool_call_id : String) : self
Source
user(content : String) : self
Source

Class methods

from_core_message(message : Crig::Completion::Message) : Array(self)
Source

Instance methods

content
Source
kind
Source
name
Source
prefix?
Source
to_core_message
Source
to_json(json : JSON::Builder) : Nil
Source
tool_call_id
Source
tool_calls
Source

Nested types