Orchestrator
in package
Table of Contents
Properties
- $llm : AIModelInterface
- $toolsRegistry : array<string|int, mixed>
Methods
- __construct() : mixed
- registerTool() : void
- Register a tool handler
- runFlow() : array<string|int, mixed>
- Run a flow
Properties
$llm
protected
AIModelInterface
$llm
$toolsRegistry
protected
array<string|int, mixed>
$toolsRegistry
= []
Methods
__construct()
public
__construct(AIModelInterface $llm) : mixed
Parameters
- $llm : AIModelInterface
registerTool()
Register a tool handler
public
registerTool(string $name, callable $handler) : void
Parameters
- $name : string
- $handler : callable
runFlow()
Run a flow
public
runFlow(BaseFlow $flow, string $userPrompt) : array<string|int, mixed>
Parameters
- $flow : BaseFlow
- $userPrompt : string