Class: RubyLLM::MCP::Handlers::HumanInTheLoopHandler
- Inherits:
-
Object
- Object
- RubyLLM::MCP::Handlers::HumanInTheLoopHandler
- Includes:
- Concerns::ApprovalActions, Concerns::AsyncExecution, Concerns::ErrorHandling, Concerns::GuardChecks, Concerns::Lifecycle, Concerns::Logging, Concerns::Options, Concerns::RegistryIntegration, Concerns::Timeouts, Concerns::ToolFiltering
- Defined in:
- lib/ruby_llm/mcp/handlers/human_in_the_loop_handler.rb
Overview
Base class for human-in-the-loop approval handlers Provides access to tool details, guards, and async support
Instance Attribute Summary collapse
-
#coordinator ⇒ Object
readonly
Returns the value of attribute coordinator.
Attributes included from Concerns::ApprovalActions
#approval_id, #parameters, #tool_name
Attributes included from Concerns::ToolFiltering
Attributes included from Concerns::Options
Instance Method Summary collapse
-
#initialize(tool_name:, parameters:, approval_id:, coordinator:, **options) ⇒ HumanInTheLoopHandler
constructor
Initialize human-in-the-loop handler.
Methods included from Concerns::ToolFiltering
Methods included from Concerns::GuardChecks
Methods included from Concerns::Timeouts
Methods included from Concerns::AsyncExecution
Methods included from Concerns::ErrorHandling
Methods included from Concerns::Lifecycle
Methods included from Concerns::Options
Constructor Details
#initialize(tool_name:, parameters:, approval_id:, coordinator:, **options) ⇒ HumanInTheLoopHandler
Initialize human-in-the-loop handler
83 84 85 86 87 88 89 |
# File 'lib/ruby_llm/mcp/handlers/human_in_the_loop_handler.rb', line 83 def initialize(tool_name:, parameters:, approval_id:, coordinator:, **) @tool_name = tool_name @parameters = parameters @approval_id = approval_id @coordinator = coordinator super(**) end |
Instance Attribute Details
#coordinator ⇒ Object (readonly)
Returns the value of attribute coordinator.
75 76 77 |
# File 'lib/ruby_llm/mcp/handlers/human_in_the_loop_handler.rb', line 75 def coordinator @coordinator end |