Metadata-Version: 2.4
Name: chainlit-praisonai
Version: 0.1.0
Summary: Chainlit integration for PraisonAI multi-agent framework
Author-email: Mervin Praison <support@praison.ai>
License-Expression: MIT
Project-URL: Homepage, https://github.com/MervinPraison/chainlit-praisonai
Project-URL: Documentation, https://docs.praison.ai
Project-URL: Repository, https://github.com/MervinPraison/chainlit-praisonai
Keywords: chainlit,praisonai,ai-agents,multi-agent,llm,chat
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: chainlit>=1.0.0
Requires-Dist: httpx>=0.24.0
Provides-Extra: dev
Requires-Dist: pytest>=7.0.0; extra == "dev"
Requires-Dist: pytest-asyncio>=0.21.0; extra == "dev"
Requires-Dist: pytest-httpx>=0.21.0; extra == "dev"
Dynamic: license-file

# chainlit-praisonai

[Chainlit](https://chainlit.io/) integration for [PraisonAI](https://github.com/MervinPraison/PraisonAI) multi-agent framework.

## Installation

```bash
pip install chainlit-praisonai
```

## Quick Start

Create `app.py`:

```python
import chainlit as cl
from chainlit_praisonai import PraisonAIClient

client = PraisonAIClient()

@cl.on_message
async def main(message: cl.Message):
    response = await client.run_workflow(message.content)
    await cl.Message(content=response).send()
```

Run:

```bash
chainlit run app.py
```

## Using a Specific Agent

```python
from chainlit_praisonai import PraisonAIClient

client = PraisonAIClient()

# Use a specific agent
response = await client.run_agent("Research quantum computing", "researcher")
```

## Configuration

```python
from chainlit_praisonai import PraisonAIClient

client = PraisonAIClient(
    api_url="http://localhost:8080",
    timeout=300,
)
```

## Prerequisites

Start PraisonAI server:

```bash
pip install praisonai
praisonai serve agents.yaml --port 8080
```

## Links

- [PraisonAI Documentation](https://docs.praison.ai)
- [Chainlit Documentation](https://docs.chainlit.io)

## License

MIT
