Class: MCP::Client::SkillReadResult
- Inherits:
-
Struct
- Object
- Struct
- MCP::Client::SkillReadResult
- Defined in:
- lib/mcp/client/skills.rb
Overview
A skill file read and verified by read_skill_resource: bytes is the verified content as a frozen
binary-encoded String (the decoded blob, or the bytes of the text), mime_type is the server's
unverified display metadata (never a reason to pick an interpreter), contents is the raw frozen
contents Array, skill is the entry object the content was checked against, and verified is true:
the digest, size, and (for a SKILL.md) frontmatter matched. Every value is independent of the objects
it was built from, so mutating a source cannot change the result.
Instance Attribute Summary collapse
-
#bytes ⇒ Object
Returns the value of attribute bytes.
-
#contents ⇒ Object
Returns the value of attribute contents.
-
#mime_type ⇒ Object
Returns the value of attribute mime_type.
-
#skill ⇒ Object
Returns the value of attribute skill.
-
#uri ⇒ Object
Returns the value of attribute uri.
-
#verified ⇒ Object
Returns the value of attribute verified.
Instance Method Summary collapse
-
#initialize(**kwargs) ⇒ SkillReadResult
constructor
A new instance of SkillReadResult.
Constructor Details
#initialize(**kwargs) ⇒ SkillReadResult
Returns a new instance of SkillReadResult.
32 33 34 35 |
# File 'lib/mcp/client/skills.rb', line 32 def initialize(**kwargs) super(**kwargs) freeze end |
Instance Attribute Details
#bytes ⇒ Object
Returns the value of attribute bytes
31 32 33 |
# File 'lib/mcp/client/skills.rb', line 31 def bytes @bytes end |
#contents ⇒ Object
Returns the value of attribute contents
31 32 33 |
# File 'lib/mcp/client/skills.rb', line 31 def contents @contents end |
#mime_type ⇒ Object
Returns the value of attribute mime_type
31 32 33 |
# File 'lib/mcp/client/skills.rb', line 31 def mime_type @mime_type end |
#skill ⇒ Object
Returns the value of attribute skill
31 32 33 |
# File 'lib/mcp/client/skills.rb', line 31 def skill @skill end |
#uri ⇒ Object
Returns the value of attribute uri
31 32 33 |
# File 'lib/mcp/client/skills.rb', line 31 def uri @uri end |
#verified ⇒ Object
Returns the value of attribute verified
31 32 33 |
# File 'lib/mcp/client/skills.rb', line 31 def verified @verified end |