struct Anthropic::ToolResult

Defined in:

message_content.cr

Constructors

Instance Method Summary

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(*, 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]