Class: RubyLLM::MCP::Attachment
- Inherits:
-
Attachment
- Object
- Attachment
- RubyLLM::MCP::Attachment
- Defined in:
- lib/ruby_llm/mcp/attachment.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#mime_type ⇒ Object
readonly
Returns the value of attribute mime_type.
Instance Method Summary collapse
- #encoded ⇒ Object
-
#initialize(content, mime_type) ⇒ Attachment
constructor
rubocop:disable Lint/MissingSuper.
Constructor Details
#initialize(content, mime_type) ⇒ Attachment
rubocop:disable Lint/MissingSuper
8 9 10 11 |
# File 'lib/ruby_llm/mcp/attachment.rb', line 8 def initialize(content, mime_type) # rubocop:disable Lint/MissingSuper @content = content @mime_type = mime_type end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
6 7 8 |
# File 'lib/ruby_llm/mcp/attachment.rb', line 6 def content @content end |
#mime_type ⇒ Object (readonly)
Returns the value of attribute mime_type.
6 7 8 |
# File 'lib/ruby_llm/mcp/attachment.rb', line 6 def mime_type @mime_type end |
Instance Method Details
#encoded ⇒ Object
13 14 15 |
# File 'lib/ruby_llm/mcp/attachment.rb', line 13 def encoded @content end |