struct

Crig::Providers::Anthropic::DocumentSource

Inherits Struct < Value < Object

Constructors

base64(data : String, media_type : DocumentFormat) : self
Source
file(file_id : String) : self
Source
from_json_value(value : JSON::Any) : self
Source
new(kind : Kind, data : String | Nil = nil, media_type : DocumentFormat | PlainTextMediaType | Nil = nil, url : String | Nil = nil, file_id : String | Nil = nil)
Source
text(data : String, media_type : PlainTextMediaType = PlainTextMediaType::Plain) : self
Source
url(url : String) : self
Source

Instance methods

data
Source
file_id
Source
kind
Source
media_type
Source
to_json(json : JSON::Builder) : Nil
Source

Nested types