Skip to main content

Yet Another Agentic Framework

Project description

YAAF (Yet Another Agentic Framework)

A stream-first, middleware-based Python framework for building agentic AI flows.

Features

  • Flexible: You can use any LLM, tools, and storage.
  • Functional Programming Approach: Use composable and reusable middleware to build a workflow.
  • Stream Architecture Available: Also Built for streaming pipelines.
  • Nested Workflows: Compose complex behaviors by nesting workflows.
  • Type Safe: Built with Pydantic for validation and serialization.

Installation

pip install yaafpy

Quick Start

import asyncio
from yaafpy.types import AgentConfig, ExecContext
from yaafpy.workflows import Workflow

async def echo_step(ctx):
    ctx.input = f"Echo: {ctx.input}"
    return ctx

async def main():
    wf = Workflow()
    wf.use(echo_step)    
    ctx = ExecContext(session_id="test", agent=AgentConfig(model="gpt-4"), input="Hello")
    result = await wf.run(ctx)
    print(result.input)

if __name__ == "__main__":
    asyncio.run(main())

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

yaafpy-0.1.1.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

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

yaafpy-0.1.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yaafpy-0.1.1.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for yaafpy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e8d08bb1cd58aabf5bfec4b3c617965a3fd25d3079c8a2853a01fb14c3bb7435
MD5 a68eab0c9baa80b8de6e925a1e647a46
BLAKE2b-256 b6540f57aee4a751604d0e93b0a33e6e9be32a216c5bb0ad9561b1279a363886

See more details on using hashes here.

Provenance

The following attestation bundles were made for yaafpy-0.1.1.tar.gz:

Publisher: python-publish.yml on GALAITA-LABS/yaafpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: yaafpy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for yaafpy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6a975ffe20f3d683724f32cc6435120c1558b6a309c6c03fdf9f0fe7c825b760
MD5 5dd7134716a97af8988ec4cc5bc6ce22
BLAKE2b-256 89d497a43e1cb8f0e2c022c6622fe2b871a5d4be94e629536d2e98f18073dce0

See more details on using hashes here.

Provenance

The following attestation bundles were made for yaafpy-0.1.1-py3-none-any.whl:

Publisher: python-publish.yml on GALAITA-LABS/yaafpy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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