Module: RubyLLM::ToolExecutors::AsyncExecutor

Defined in:
lib/swarm_sdk/ruby_llm_patches/tool_concurrency_patch.rb

Class Method Summary collapse

Class Method Details

.execute(tool_calls, max_concurrency:, &block) ⇒ Object



74
75
76
77
# File 'lib/swarm_sdk/ruby_llm_patches/tool_concurrency_patch.rb', line 74

def execute(tool_calls, max_concurrency:, &block)
  load_async_gem
  run_with_sync { execute_tools(tool_calls, max_concurrency, &block) }
end