Skip to main content

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 & History management 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


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.1.3.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

droidflow-0.0.1.3-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

Details for the file droidflow-0.0.1.3.tar.gz.

File metadata

  • Download URL: droidflow-0.0.1.3.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for droidflow-0.0.1.3.tar.gz
Algorithm Hash digest
SHA256 7cf04ad2860068ba9185a1a9eaa8f69c3bb802e95824db794a0ce9b0c6fb17be
MD5 6339955096fdb8c5081a631baff598b9
BLAKE2b-256 ee75f802344b1e6aa41eb6c586d8a9f6252e1fc68513d5c45c91cfbc96006b14

See more details on using hashes here.

File details

Details for the file droidflow-0.0.1.3-py3-none-any.whl.

File metadata

  • Download URL: droidflow-0.0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for droidflow-0.0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1fc798c1061a9e3d22a372b7d5a934596f9cbfbc45c2353dae0cb8a3e0ec1ce1
MD5 a38ed42f1c63b5b4f9f390bd289974c2
BLAKE2b-256 01fa0184ac3b50ded84cf0c9da2f2f0e34633eb6c2ea0ac8a32e4db9cfb7c665

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page