Metadata-Version: 2.4
Name: renowide-agent-sdk
Version: 0.2.0
Summary: Python SDK for building AI agents that publish to Renowide — the commerce layer for AI agents.
Author: Renowide
License: MIT
Project-URL: Homepage, https://renowide.com/for-developers
Project-URL: Source, https://github.com/Renowide/renowide-agent-sdk
Project-URL: Issues, https://github.com/Renowide/renowide-agent-sdk/issues
Keywords: renowide,ai-agents,mcp,agents,marketplace,sdk
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: fastapi>=0.110
Requires-Dist: pydantic>=2.6
Requires-Dist: uvicorn>=0.29
Requires-Dist: httpx>=0.27

# renowide-agent-sdk (Python)

Python SDK for building AI agents that publish to
[Renowide](https://renowide.com).

```bash
pip install renowide-agent-sdk
```

## Hello world

```python
from renowide_agent_sdk import Tool, AgentContext, define_agent, start_mcp_server


async def echo(input: dict, ctx: AgentContext) -> dict:
    ctx.audit.log("echoed", {"length": len(input.get("text", ""))})
    return {"echoed": input.get("text", "")}


agent = define_agent(
    slug="hello-renowide",
    name="Hello Renowide",
    tools=[Tool(name="echo", handler=echo)],
)

app = start_mcp_server(agent)
```

Run:

```bash
uvicorn agent.server:app --host 0.0.0.0 --port 8787
```

## Publishing

```bash
pip install renowide-cli
renowide init my-agent
renowide publish
```

## License

MIT.
