AgentFlowPy
AgentFlowPy is a lightweight Python framework for building workflows with flexible & extensible context management. It allows developers to create agents that execute sequences of steps, maintain context, implement custom contexts, pass arguments between steps, and support typed messages.
Features
- Step-based workflow execution.
- Flexible context management with multiple contexts.
- Pass arguments between steps using
StepLead. - Typed messages with simple types,
Pydantic,dtaclassesand raw class support. - Easy integration of custom logic in each step.
- Looping and conditional flow control (
AGENT_START,AGENT_END,StepLead).
Installation
pip install agentflowpy
Examples
- Basic Usage : basic_flow.py Sample of basic use.
- Typed Message : typed_message.py Typed Message and Conditional flow.
- Custom Context Implementation: custom_context.py Create/Manage custom context types
- Pass Arguments : pass_args.py Passing additional arguments to next step.
- Context Switch In Flow : mid_switch.py Switch context while in flow to effect next steps.
- Serialize/Restore Contexts: save_load_state.py Serialize and Restore context_manager state
Release files for agentflowpy 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| agentflowpy-1.0.0.tar.gz | 6.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agentflowpy-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.9 kB
Release files / agentflowpy-1.0.0.tar.gz
| Download URL | agentflowpy-1.0.0.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7fbdf2328a86b3f937552c53c5b4e0f31f26683d54964b751034175af2315984
|
|
BLAKE2b-256 checksum How to use checksums |
742336434028d92e499bb199f2a31ffad8bc0b649c45f6737bea5e8728004af6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|
Release files / agentflowpy-1.0.0-py3-none-any.whl
| Download URL | agentflowpy-1.0.0-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
acaf097945272a36c8cca2af25a45dc0570b2f63e6cea4b278e821c2de17f012
|
|
BLAKE2b-256 checksum How to use checksums |
5727660fe73f8b1dd714edfa73ecae8eeef23b276635468ebb3060a319135bd9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.7
|