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
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 yaafpy-0.2.2.tar.gz.
File metadata
- Download URL: yaafpy-0.2.2.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a75b42b17dc866322dae338115884bb86b9dd86b49b81573f5147695b1a0951e
|
|
| MD5 |
bfd6764aeb467e29d220e2e97488651c
|
|
| BLAKE2b-256 |
9500ab15d3c7ca6cadd62b8f7fbdc1cc0f0e5e3212cb5d9ea48a005744dcde8b
|
Provenance
The following attestation bundles were made for yaafpy-0.2.2.tar.gz:
Publisher:
python-publish.yml on GALAITA-LABS/yaafpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
yaafpy-0.2.2.tar.gz -
Subject digest:
a75b42b17dc866322dae338115884bb86b9dd86b49b81573f5147695b1a0951e - Sigstore transparency entry: 1247339761
- Sigstore integration time:
-
Permalink:
GALAITA-LABS/yaafpy@a855069ad37657a8e22f1b619abfe74bab925a11 -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/GALAITA-LABS
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@a855069ad37657a8e22f1b619abfe74bab925a11 -
Trigger Event:
push
-
Statement type:
File details
Details for the file yaafpy-0.2.2-py3-none-any.whl.
File metadata
- Download URL: yaafpy-0.2.2-py3-none-any.whl
- Upload date:
- Size: 9.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
916e00f99f01095420faef8add00278d7862604e39aa922a1ebbb2fb2d03f8fa
|
|
| MD5 |
93bbfdb3605335d7db10af6358d62aa1
|
|
| BLAKE2b-256 |
f3c1258c307db0cf5dcd46486bed0cc8b0fcd51a0a7c4a0f8ad7afc6d3f54936
|
Provenance
The following attestation bundles were made for yaafpy-0.2.2-py3-none-any.whl:
Publisher:
python-publish.yml on GALAITA-LABS/yaafpy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
yaafpy-0.2.2-py3-none-any.whl -
Subject digest:
916e00f99f01095420faef8add00278d7862604e39aa922a1ebbb2fb2d03f8fa - Sigstore transparency entry: 1247339843
- Sigstore integration time:
-
Permalink:
GALAITA-LABS/yaafpy@a855069ad37657a8e22f1b619abfe74bab925a11 -
Branch / Tag:
refs/tags/v0.2.2 - Owner: https://github.com/GALAITA-LABS
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@a855069ad37657a8e22f1b619abfe74bab925a11 -
Trigger Event:
push
-
Statement type: