struct

Autobot::Session::Message

Inherits JSON::Serializable < Struct < Value < Object

A single message in a conversation session.

Constructors

new(role : String, content : String, timestamp : String = Time.utc.to_rfc3339, tools_used : Array(String) | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

content
Source
content=(content : String)
Source
role
Source
role=(role : String)
Source
timestamp
Source
timestamp=(timestamp : String)
Source
tools_used
Source
tools_used=(tools_used : Array(String) | Nil)
Source