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 : String, role : Role = :user) #

[View source]
def self.new(content : Array(Anthropic::MessageContent), role : Anthropic::Message::Role = :user) #

[View source]

Instance Method Detail

def content : Array(MessageContent) #

[View source]
def role : Role #

[View source]