Skip to main content

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

agentflowpy-0.1.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file agentflowpy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: agentflowpy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for agentflowpy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 144a05ea396324892f1996d5cb72be544cb282649658fd209b39fc0175a80258
MD5 af0599ec48f0f2189b6b0a8ec5e4b6f1
BLAKE2b-256 434896fbcfd4902b5cf2a922c45b3ce63d642510d86f49d4f7fec5039ef71d3f

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