Practial module to build AI agents with context management and step-based execution.
Project description
AgentFlowPy
AgentFlowPy is a lightweight Python framework for building step-based workflows with flexible context management. It allows developers to create agents that execute sequences of steps, maintain context, pass arguments between steps, and support typed messages using Pydantic models.
Features
- Step-based workflow execution.
- Flexible context management with multiple contexts.
- Pass arguments between steps using
StepPass. - Typed messages with Pydantic support.
- Easy integration of custom logic in each step.
- Looping and conditional flow control (
AGENT_START,AGENT_END).
Installation
pip install agentflowpy
Examples
- Basic Usage : basic_flow.py Sample of basic use.
- Typed Message : typed_message.py Typed Message and Conditional flow.
- 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
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
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 agentflowpy-0.2.2.tar.gz.
File metadata
- Download URL: agentflowpy-0.2.2.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9afa3b18457f89101656153880fc4a0ab9c73f14c5b1882585d7b1ac1c1dc516
|
|
| MD5 |
72f8b13b33ecea4c24e58338a36d9253
|
|
| BLAKE2b-256 |
8dd998a1e6314c339eb2c2a421e7b9497c654ea8124371c1f0fe3c383c27f5c3
|
File details
Details for the file agentflowpy-0.2.2-py3-none-any.whl.
File metadata
- Download URL: agentflowpy-0.2.2-py3-none-any.whl
- Upload date:
- Size: 8.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65b7f238c9004b78aff5e4e5793145cb00b5d0708ac0fc96a905972e82531656
|
|
| MD5 |
f16940a1b802a50ad190ba7d76b16f25
|
|
| BLAKE2b-256 |
ce5f8c848c5d48ef5377807ccfafe29acd3879729fd1a5a5850f80d326e168b3
|