FlowAgents
State-driven AI agent framework for task automation with human-in-the-loop.
Build agents that collect information, validate input, and execute tasks with optional approval.
Perfect For
- Booking & Reservations - Restaurants, flights, hotels, appointments
- Request & Approval - Leave requests, expense reports, access requests
- Form Wizards - Multi-step data collection with validation
- Business Workflows - Order processing, customer service, IT ticketing
Installation
pip install flowagents # Core
pip install flowagents[openai] # + OpenAI
pip install flowagents[anthropic] # + Claude
pip install flowagents[all] # All providers
Quick Example
import asyncio
from flowagents import flowagent, StandardAgent, InputField, AgentStatus
from flowagents import Orchestrator, OpenAIClient
@flowagent(triggers=["book", "reservation"])
class BookingAgent(StandardAgent):
guests = InputField("How many guests?")
date = InputField("What date?")
async def on_running(self, msg):
return self.make_result(
status=AgentStatus.COMPLETED,
raw_message=f"Booked for {self.guests} on {self.date}!"
)
async def main():
llm = OpenAIClient(api_key="sk-xxx", model="gpt-4o-mini")
orchestrator = Orchestrator(llm_client=llm)
await orchestrator.initialize()
result = await orchestrator.handle_message("user_1", "I want to book a table")
print(result.raw_message) # "How many guests?"
result = await orchestrator.handle_message("user_1", "4")
print(result.raw_message) # "What date?"
result = await orchestrator.handle_message("user_1", "Friday")
print(result.raw_message) # "Booked for 4 on Friday!"
asyncio.run(main())
Key Features
- State Machine -
INITIALIZING → WAITING_FOR_INPUT → RUNNING → COMPLETED - Field Collection - Declarative
InputFieldwith validation - Approval Workflow - Human confirmation before sensitive actions
- Multi-LLM - OpenAI, Claude, Azure, Gemini, Ollama, DashScope
- Orchestrator - Route messages to the right agent
- Multi-tenant - Built-in isolation for SaaS
Documentation
- Getting Started - Build your first agent
- Full Documentation - Complete guide
- Examples - Sample code
Guides: Agents | Tools | LLM Providers | Orchestrator | Workflow
Contributing
See CONTRIBUTING.md for guidelines.
License
Metadata
Release files for flowagents 0.1.1
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 |
|---|---|---|---|---|
| flowagents-0.1.1.tar.gz | 191.8 kB | Without provenance | Details for flowagents-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flowagents-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for flowagents-0.1.1-py3-none-any.whl |
Total release size: 374.3 kB
Release files / flowagents-0.1.1.tar.gz
| Download URL | flowagents-0.1.1.tar.gz |
|---|---|
| Size | 191.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
104496c99625e1c31bef56584ee8020388a673df8cdfacd8ffcd3048e26d942b
|
|
BLAKE2b-256 checksum How to use checksums |
7fe1f52b8aaac23bdc40cc9ccb6e386d45010ba5b4acc74cfa48e20e3b326418
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / flowagents-0.1.1-py3-none-any.whl
| Download URL | flowagents-0.1.1-py3-none-any.whl |
|---|---|
| Size | 182.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ad55a1ad2879462d07fe378304355aa29e5405189964957a09cd019edf4dfbe
|
|
BLAKE2b-256 checksum How to use checksums |
998e904446ab87b910b377ad452e99340ce188da750bc42e74d02a14b4bec187
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Security for flowagents 0.1.1
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.