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 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, dtaclasses and 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

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

agentflowpy-1.0.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

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

agentflowpy-1.0.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file agentflowpy-1.0.0.tar.gz.

File metadata

  • Download URL: agentflowpy-1.0.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for agentflowpy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7fbdf2328a86b3f937552c53c5b4e0f31f26683d54964b751034175af2315984
MD5 9811d1e8de37c5cabdefd63c5f5fbf7a
BLAKE2b-256 742336434028d92e499bb199f2a31ffad8bc0b649c45f6737bea5e8728004af6

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for agentflowpy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 acaf097945272a36c8cca2af25a45dc0570b2f63e6cea4b278e821c2de17f012
MD5 ea9ea8b7ea5698815eddad977e6038e0
BLAKE2b-256 5727660fe73f8b1dd714edfa73ecae8eeef23b276635468ebb3060a319135bd9

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