class Riffer::ToolRuntime::Threaded
Executes tool calls concurrently using threads.
class MyAgent < Riffer::Agent tool_runtime Riffer::ToolRuntime::Threaded end
Constants
- DEFAULT_MAX_CONCURRENCY
Public Class Methods
Source
# File lib/riffer/tool_runtime/threaded.rb, line 17 def initialize(max_concurrency: DEFAULT_MAX_CONCURRENCY) super(runner: Riffer::Runner::Threaded.new(max_concurrency: max_concurrency)) end
- max_concurrency
-
maximum number of tool calls to execute simultaneously.
Calls superclass method
Riffer::ToolRuntime::new