An AI agent app powered by OpenAI's Agents SDK and Chainlit, built to demonstrate autonomous workflows and tool integration. This app is capable of performing dynamic tasks and visualizing its behavior graphically, making it a powerful educational and development tool for modern AI engineering.
- 🔧 Uses OpenAI Agents SDK to create intelligent, modular agents
- 📊 Generates dynamic visualizations using
draw_graph()
- 💬 Built with Chainlit for interactive chat-based interfaces
- 🧩 Designed for extendability with tools and modular actions
- Python 3.12
- Chainlit
- OpenAI Agents SDK
- Graphviz (for visualization)
uv
(for managing virtual environments and dependencies)
[project]
name = "panacloud-agent-challange"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.12"
dependencies = [
"chainlit>=2.5.5",
"openai-agents[viz]>=0.0.16",
]
panacloud-agent-app/
├── panacloud_agents/ # Agent logic
├── tools/ # Custom tools
├── assets/ # Graph visualizations (PNG)
├── main.py # Main entrypoint
├── LICENSE
├── README.md
└── pyproject.toml
Follow these commands to run the agent and visualize its behavior:
# 1. Install required tools
uv add openai-agents python-dotenv chainlit
# 2. Create and activate virtual environment
uv venv
source .venv/bin/activate
# 3. Run the project
uv run chainlit run main.py -w
Use the built-in visualization tool to generate a graph of your agent:
from agents.extensions.visualization import draw_graph
draw_graph(panacloud_agent, filename="assets/agent_graph")
The image agent_graph.png
will be saved in the assets/
folder.
Contributions, ideas, and improvements are welcome! Feel free to fork the repo and submit a pull request.
Zohaib Khan Cloud Native & AI Enthusiast
This project is licensed under the MIT License.