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.
  • 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-0.1.1.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

agentflowpy-0.1.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for agentflowpy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a79a5ca4c90c5a40a3057df0aabfc8a62a1756c5809606950ae4ff0f9b6117ab
MD5 dd27fa30cd400d0ec9e1f30f9e3a695b
BLAKE2b-256 64b592089bacfe15cd345c151182b0a5532c0f3ca24dae11d553225baef6f3a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: agentflowpy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.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-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7078d9b4366efc65c16813cdae45ba27d22d8893413b746d0801206835c486f2
MD5 551a506f6471ba65c192b2bdf0a7e2d8
BLAKE2b-256 6bf34ca9ec0bf8eb1d339bf6502636667428d78ceb66940c75a8dc6a8f728e6d

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