struct
ACP::Protocol::TextResourceContents
- ACP::Protocol::TextResourceContents
- Struct
- Value
- Object
Overview
Text-based resource contents embedded in a resource content block.
Included Modules
- JSON::Serializable
Defined in:
acp/protocol/content_block.crConstructors
- .new(uri : String, text : String, mime_type : String | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#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 text content.
-
#mime_type=(mime_type : String | Nil)
Optional MIME type of the text content.
-
#text : String
The text content of the resource.
-
#text=(text : String)
The text content of the resource.
-
#uri : String
The URI identifying the resource.
-
#uri=(uri : String)
The URI identifying the resource.
Constructor Detail
def self.new(uri : String, text : String, mime_type : String | Nil = nil, meta : Hash(String, JSON::Any) | Nil = nil)
#