struct
ACP::Protocol::BlobResourceContents
- ACP::Protocol::BlobResourceContents
- Struct
- Value
- Object
Overview
Binary resource contents embedded in a resource content block.
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/content_block.crConstructors
- .new(uri : String, blob : String, mime_type : String | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#blob : String
Base64-encoded binary data.
-
#blob=(blob : String)
Base64-encoded binary data.
-
#meta : Hash(String, JSON::Any) | Nil
Extension metadata.
-
#meta=(meta : Hash(String, JSON::Any) | Nil)
Extension metadata.
-
#mime_type : String | Nil
Optional MIME type of the blob.
-
#mime_type=(mime_type : String | Nil)
Optional MIME type of the blob.
-
#uri : String
The URI identifying the resource.
-
#uri=(uri : String)
The URI identifying the resource.
Constructor Detail
def self.new(uri : String, blob : String, mime_type : String | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
#