Metadata-Version: 2.4
Name: auwgent-sdk
Version: 0.1.0a4
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Programming Language :: Rust
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Summary: The Python SDK for Auwgent — a compiler-first framework for building production-grade AI agents.
Keywords: ai,agents,llm,auwgent
Author-email: snrraptopack <snrraptopack@gmail.com>
License: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Documentation, https://auwgent.dev
Project-URL: Homepage, https://github.com/snrraptopack/Auwgent
Project-URL: Repository, https://github.com/snrraptopack/Auwgent

# auwgent-sdk (Python)

The official Python SDK for [Auwgent](https://github.com/snrraptopack/Auwgent) — a compiler-first framework for building production-grade AI agents.

## Installation

```bash
pip install auwgent-sdk
```

## Requirements

- Python 3.8 or later
- The [Auwgent CLI](https://www.npmjs.com/package/@snrraptopack/auwgent-cli) to compile your agent definitions

## Usage

Compile your agent definition first:

```bash
auwgent generate
```

This produces a `generated/` folder containing the compiled IR and Python bindings. Then:

```python
import asyncio
from generated.main_types import auwgent

agent = auwgent({
    "apiKeys": {
        "geminiApiKey": "YOUR_API_KEY"
    }
})

async def handle_intent(name: str, value: dict, agent_name: str):
    if name == "response_text":
        print(value.get("text"))

agent.on_intent(handle_intent)

asyncio.run(agent.run("Hello!"))
```

## Documentation

Full documentation is available at [auwgent.dev](https://auwgent.dev).

## License

MIT

