Gradio components for PraisonAI multi-agent framework
Project description
gradio-praisonai
Gradio components for PraisonAI multi-agent framework.
Installation
pip install gradio-praisonai
Quick Start
from gradio_praisonai import launch_chat
# Launch a chat interface
launch_chat()
Components
create_chat_interface
Create a Gradio Blocks interface:
from gradio_praisonai import create_chat_interface
demo = create_chat_interface(
api_url="http://localhost:8080",
agent="researcher", # Optional: specific agent
title="🤖 AI Assistant",
)
demo.launch()
PraisonAIClient
Direct API client:
from gradio_praisonai import PraisonAIClient
client = PraisonAIClient(api_url="http://localhost:8080")
# Run full workflow
result = client.run_workflow("Research AI trends")
# Run specific agent
result = client.run_agent("Write an article", "writer")
# List agents
agents = client.list_agents()
Prerequisites
Start PraisonAI server:
pip install praisonai
praisonai serve agents.yaml --port 8080
Links
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gradio_praisonai-0.1.0.tar.gz.
File metadata
- Download URL: gradio_praisonai-0.1.0.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f34100df49bc327e9db71b7a1ae1118f16e732e4435e65b31c46d8c6e8df9b20
|
|
| MD5 |
80a4667fb28cf593d139e4ab366e30d5
|
|
| BLAKE2b-256 |
b55e3fee8edf670b5f6afcbd82353dcdd4fa911d4206bdd154ad4cd87e78a610
|
File details
Details for the file gradio_praisonai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gradio_praisonai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1df446feaddf798e76836ef6a6140a638d8e22455a2a0b443b4bd3b28616a319
|
|
| MD5 |
c489f0e9f49710df8af4a08673ed9946
|
|
| BLAKE2b-256 |
a0432fce7cd10ac3fc864dea1950c63c1ff6dec154bac288b10eb3910eaac46a
|