Module: RubyLLM::MCP::Handlers::Concerns::Options
- Included in:
- ElicitationHandler, HumanInTheLoopHandler, SamplingHandler
- Defined in:
- lib/ruby_llm/mcp/handlers/concerns/options.rb
Overview
Provides option management with defaults and validation
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(**options) ⇒ Object
Initialize with options.
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
39 40 41 |
# File 'lib/ruby_llm/mcp/handlers/concerns/options.rb', line 39 def @options end |
Class Method Details
.included(base) ⇒ Object
9 10 11 |
# File 'lib/ruby_llm/mcp/handlers/concerns/options.rb', line 9 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#initialize(**options) ⇒ Object
Initialize with options
43 44 45 46 47 |
# File 'lib/ruby_llm/mcp/handlers/concerns/options.rb', line 43 def initialize(**) @options = () super() if defined?(super) end |