A multi agent orchestrator library
Project description
droidflow
droidflow is a lightweight multi-agent orchestration library designed to coordinate reasoning, planning, and tool-using agents. It is built for financial and data-driven applications, but is flexible enough for general AI agent workflows.
Features
- PlannerAgent – Breaks down a user query into minimal actionable steps
- RouterAgent – Routes sub-tasks to the appropriate specialized agent
- DomainAgent – Wraps tools (functions/APIs) into callable interfaces
- ReasonerAgent – Executes reasoning with tool calls when needed
- Simple
State&Historymanagement for contextual workflows - Easy integration with LLMs (Google Generative AI, OpenAI, etc.)
Installation
pip install droidflow
## Quick Example
```python
from droidflow.planer import PlannerAgent
from droidflow.router import RouterAgent
from droidflow.domain import DomainAgent, ToolFunction
from droidflow.model import State
# Example tool function
def get_stock_price(symbol: str) -> str:
return f"Price of {symbol} is 100"
# Register tool
tool_fn = ToolFunction("get_stock_price", get_stock_price, state_enabled=False)
# Dummy LLM (replace with Google Generative AI, OpenAI, etc.)
class DummyLLM:
def generate_content(self, prompt):
print(f"[LLM called] {prompt}")
class Response: text = "SINGLE_CALL"
return Response()
llm = DummyLLM()
# Create agents
stock_agent = DomainAgent(llm, [tool_fn], name="stock_agent", mode=True)
planner = PlannerAgent(llm, "You are a planner for stock tasks.")
router = RouterAgent(llm, agents=[stock_agent])
# Run
plans = planner.plan("Get the price of AAPL stock")
print("Plans:", plans)
result = router.route(plans)
print("Final result:", result)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
droidflow-0.0.2.tar.gz
(7.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file droidflow-0.0.2.tar.gz.
File metadata
- Download URL: droidflow-0.0.2.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8306ac9cb26a080f40da8d717b2226870154006473918c409fd454a2b332d90
|
|
| MD5 |
f64b2959c2a2a4bcfcc059976eec9738
|
|
| BLAKE2b-256 |
870c0a96cf96fb524251ece7d0137e5ad7711e894d452816740f4cc11545b321
|
File details
Details for the file droidflow-0.0.2-py3-none-any.whl.
File metadata
- Download URL: droidflow-0.0.2-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2896ff398dc903615b5b1c367bba57aa28482a61464a05c782fefe74ec29989
|
|
| MD5 |
069dc5840f42eb0b1b21640bbeb89014
|
|
| BLAKE2b-256 |
f96781116afd33a83c083b2dd6250c3e4bcea0f53a9b7d3956559f00bc7d1ea1
|