class Anthropic::ToolResult

Defined in:

message_content.cr

Constructors

Instance Method Summary

Instance methods inherited from class Anthropic::MessageContent

cache_control : CacheControl | Nil cache_control, cache_control!(cache_control : CacheControl | Nil = CacheControl.new) : self cache_control!, cache_control=(cache_control : CacheControl | Nil) cache_control=, no_cache_control! : self no_cache_control!, type : String type

Constructor methods inherited from class Anthropic::MessageContent

new(pull : JSON::PullParser) new

Constructor Detail

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

[View source]
def self.new(*, tool_use_id : String, error : Bool = false, content : Array(Text) | Array(Image)) #

[View source]
def self.new(*, tool_use_id : String, error : Bool = false, content : Array(Anthropic::TextOrImageContent)) #

[View source]

Instance Method Detail

def content : Array(Text | Image) #

[View source]
def error? : Bool #

[View source]
def tool_use_id : String #

[View source]
def type : String #

[View source]