struct Anthropic::Message

Included Modules

Extended Modules

Defined in:

message.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(content : Array(Anthropic::MessageContent) | String, role : Anthropic::Message::Role = :user) #

Instance Method Detail

def content : String | Array(MessageContent) #

def role : Role #