Skip to main content

Chainlit integration for PraisonAI multi-agent framework

Project description

chainlit-praisonai

Chainlit integration for PraisonAI multi-agent framework.

Installation

pip install chainlit-praisonai

Quick Start

Create app.py:

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:

chainlit run app.py

Using a Specific Agent

from chainlit_praisonai import PraisonAIClient

client = PraisonAIClient()

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

Configuration

from chainlit_praisonai import PraisonAIClient

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

Prerequisites

Start PraisonAI server:

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

Links

License

MIT

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

chainlit_praisonai-0.1.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chainlit_praisonai-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file chainlit_praisonai-0.1.0.tar.gz.

File metadata

  • Download URL: chainlit_praisonai-0.1.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.11

File hashes

Hashes for chainlit_praisonai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5d4727143296c20d867ab345f1a215cfaf4c6ce37ba96558aef299f33eea04d3
MD5 73f5d587ab7f512f0c482dffb173fac5
BLAKE2b-256 3b99922040ae70cc243b3ccb7867a016428d7e8d9c8cc77f0376cb5ef72823f2

See more details on using hashes here.

File details

Details for the file chainlit_praisonai-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for chainlit_praisonai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 21648aaa3e9e1ddcdf9af9c1dee5caca035212de493cb6cd371dda11e637f2a9
MD5 06618de8173187d0a69916a2ce869e2e
BLAKE2b-256 439d27cbfa3873e927526769a53ac173d78b643a8650670a259fa0cee1ec6cc1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page