struct

Crig::Providers::Ollama::Message

Inherits Struct < Value < Object

Constructors

assistant(content : String, thinking : String | Nil = nil, images : Array(String) | Nil = nil, name : String | Nil = nil, tool_calls : Array(ToolCall) = [] of ToolCall) : self
Source
from_json_value(value : JSON::Any) : self
Source
new(kind : Kind, content : String, images : Array(String) | Nil = nil, name : String | Nil = nil, thinking : String | Nil = nil, tool_calls : Array(ToolCall) = [] of ToolCall)
Source
system(content : String) : self
Source
tool_result(name : String, content : String) : self
Source
user(content : String, images : Array(String) | Nil = nil, name : String | Nil = nil) : self
Source

Class methods

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

Instance methods

content
Source
images
Source
kind
Source
name
Source
thinking
Source
to_core_message
Source
to_json(json : JSON::Builder) : Nil
Source
tool_calls
Source

Nested types