class

ActiveAgent::Message

Inherits Reference < Object

Multimodal conversation message. roles: :system — instructions :user — input (text + images) :assistant — model turn (text and/or tool_calls) :tool — tool result for a tool_call_id

Constructors

assistant(text : String | Nil, tool_calls : Array(ToolCall) = [] of ToolCall) : Message
Source
new(role : Symbol, text : Nil | String = nil, images : Array(String) = [] of String, tool_calls : Array(ActiveAgent::ToolCall) = [] of ToolCall, tool_call_id : Nil | String = nil, name : Nil | String = nil)
Source
system(text : String) : Message
Source
tool_result(tool_call_id : String, name : String, content : String) : Message
Source
user(text : String, images : Array(String) = [] of String) : Message
Source

Instance methods

images
Source
name
Source
role
Source
text
Source
tool_call_id
Source
tool_calls
Source