Metadata-Version: 2.4
Name: yaagents-fastapi
Version: 0.4.0
Summary: YAAgents FastAPI SDK — Agentic REST Profile v0.3 (spec/agentic-rest-profile.md)
Project-URL: Homepage, https://github.com/ai-mpathyminds/yaagents
Project-URL: Supports-YAAgents-Profile, https://github.com/ai-mpathyminds/yaagents/blob/v0.3.0/spec/agentic-rest-profile.md
License: Apache-2.0
License-File: LICENSE
Keywords: REST,agentic,fastapi,profile-v0.3,yaagents
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries
Classifier: Typing :: Typed
Requires-Python: <4,>=3.11
Requires-Dist: fastapi>=0.111
Provides-Extra: test
Requires-Dist: httpx>=0.27; extra == 'test'
Requires-Dist: jsonschema>=4.23; extra == 'test'
Requires-Dist: pip-audit>=2.7; extra == 'test'
Requires-Dist: pytest-cov>=5; extra == 'test'
Requires-Dist: pytest>=8; extra == 'test'
Description-Content-Type: text/markdown

# yaagents-fastapi

FastAPI SDK for the **YAAgents Agentic REST Profile v0.3**.

Supports YAAgents Profile v0.3 — see `spec/agentic-rest-profile.md`.

## Install

```
pip install yaagents-fastapi==0.3.0
```

## Quick start

```python
from yaagents_fastapi import AgenticResponse

@app.post("/campaigns/{id}/optimizations")
def optimize(id: str) -> Response:
    return AgenticResponse.accepted(
        operation_id="op-001",
        status_url=f"/campaigns/{id}/optimizations/op-001/status",
        correlation_id=ctx.correlation_id,
        request_id=ctx.request_id,
    )
```

Source: https://github.com/ai-mpathyminds/yaagents-sdk-fastapi

Community docs: https://github.com/ai-mpathyminds/yaagents
