Module: RubyLLM::MCP::Handlers::Concerns::GuardChecks
- Included in:
- HumanInTheLoopHandler, SamplingHandler
- Defined in:
- lib/ruby_llm/mcp/handlers/concerns/guard_checks.rb
Overview
Provides guard method functionality to validate before execution
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
-
#call ⇒ Object
Execute with guard checks.
Class Method Details
.included(base) ⇒ Object
9 10 11 |
# File 'lib/ruby_llm/mcp/handlers/concerns/guard_checks.rb', line 9 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#call ⇒ Object
Execute with guard checks
33 34 35 36 37 38 39 |
# File 'lib/ruby_llm/mcp/handlers/concerns/guard_checks.rb', line 33 def call # Run all guards first guard_result = execute_guards return guard_result unless guard_result.nil? super end |