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)
Metadata
Release files for droidflow 0.0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| droidflow-0.0.2.2.tar.gz | 8.1 kB | Without provenance | Details for droidflow-0.0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| droidflow-0.0.2.2-py3-none-any.whl | Python 3 | none | any | Details for droidflow-0.0.2.2-py3-none-any.whl |
Total release size: 17.2 kB
Release files / droidflow-0.0.2.2.tar.gz
| Download URL | droidflow-0.0.2.2.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c3481faa86f2c0e5c0a90191c8485d1f46713e442033748ce943a92c74384e0a
|
|
BLAKE2b-256 checksum How to use checksums |
73df9ce3f98f87b8d4e060c5209354508d75472495f9cd56a4bc26b063c655d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / droidflow-0.0.2.2-py3-none-any.whl
| Download URL | droidflow-0.0.2.2-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e8fa0fc4b5ea1719ffe850e6453e2ab853ce2f79da862c25b20f6cfac55290b7
|
|
BLAKE2b-256 checksum How to use checksums |
30681de5451eebe9658c1c73deec3fa1194ae8ecca3f3a9bc21cd74b668ebe6f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Security for droidflow 0.0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.