struct Anthropic::Text

Defined in:

message_content.cr

Constructors

Instance Method Summary

Constructor methods inherited from struct Anthropic::TextOrImageContent

new(pull : JSON::PullParser) new

Instance methods inherited from struct Anthropic::MessageContent

cache_control : CacheControl | Nil cache_control, type : String type

Constructor methods inherited from struct Anthropic::MessageContent

new(pull : JSON::PullParser) new

Constructor Detail

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

[View source]
def self.new(text : String, *, cache_control = nil) #

[View source]

Instance Method Detail

def text : String #

[View source]
def to_s(io) : Nil #

[View source]
def type : String #

[View source]