SLM Orchestrator
Autonomous meta-agent that inspects incoming user queries, dynamically selects appropriate sub-agents, and sequences multi-step execution graphs.
๐ Overview & Capabilities
Autonomous meta-agent that inspects incoming user queries, dynamically selects appropriate sub-agents, and sequences multi-step execution graphs.
Key Features
- Dynamic routing across local specialized SLM agents
- ReAct reasoning loop with tool-execution feedback cycles
- Parallel tool execution branches
- Automatic fallback handling on sub-agent errors
๐ป Installation
Install the local package using pip:
๐ Checkout from GitHub
Clone only this agent's folder from the monorepo using Git sparse-checkout โ no need to download the full repository:
Option 1 โ Sparse Checkout (Recommended)
Option 2 โ Full Repository Clone
๐ก Tip: After checkout, install the package locally with pip install -e ./slm_orchestrator to run in editable mode without publishing to PyPI.
โ๏ธ Configuration API
Constructor Parameters
Instantiate SLMOrchestrator with performance and runtime options:
| Parameter | Type / Default | Description |
|---|---|---|
model_path | str | None | Local ONNX model path. Default: None. |
temperature | float | 0.0 | Routing decision temperature. Default: 0.0. |
top_p | float | 0.9 | Nucleus sampling cutoff. Default: 0.9. |
max_tokens | int | 256 | Maximum generation token limit. Default: 256. |
n_threads | int | 4 | CPU threads for inference. Default: 4. |
Methods
| Method Signature | Return Type | Description |
|---|---|---|
route(agents, question, ...) | dict | Routes user query to the best-matching agent or tool callback chain. |
Execution Parameters
Complete list of execution parameters accepted by the primary agent method:
| Parameter | Type / Default | Description |
|---|---|---|
agents | list[str] | dict | List of available sub-agent names. |
question | str | User query string requiring routing. |
system_prompt | str | None | System routing instruction override. Default: None. |
user_input | str | None | Contextual parameter key values. Default: None. |
temperature | float | 0.0 | Sampling temperature. Default: 0.0. |
top_p | float | 0.9 | Nucleus sampling probability. Default: 0.9. |
max_tokens | int | 256 | Maximum token limit. Default: 256. |
Quick Start
๐ Verified Output Logs
Diagnostic execution console output running locally on CPU: