struct Anthropic::ToolResult

Defined in:

message_content.cr

Constructors

Instance Method Summary

Instance methods inherited from struct Anthropic::MessageContent

type : String type

Constructor methods inherited from struct Anthropic::MessageContent

new(pull : JSON::PullParser) new

Constructor Detail

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

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

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

Instance Method Detail

def content : Array(Text | Image) #

def error? : Bool #

def tool_use_id : String #

def type : String #