Module: RubyLLM::MCP::Handlers::Concerns::AsyncExecution

Included in:
ElicitationHandler, HumanInTheLoopHandler
Defined in:
lib/ruby_llm/mcp/handlers/concerns/async_execution.rb

Overview

Provides async execution capabilities for handlers

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



9
10
11
# File 'lib/ruby_llm/mcp/handlers/concerns/async_execution.rb', line 9

def self.included(base)
  base.extend(ClassMethods)
end

Instance Method Details

#async?Boolean

Check if this handler instance is async

Returns:

  • (Boolean)


38
39
40
# File 'lib/ruby_llm/mcp/handlers/concerns/async_execution.rb', line 38

def async?
  self.class.async?
end

#timeoutObject

Get timeout value for this handler



43
44
45
# File 'lib/ruby_llm/mcp/handlers/concerns/async_execution.rb', line 43

def timeout
  @options[:timeout] || self.class.async_timeout
end