Metadata-Version: 2.4
Name: gradio_agentvisualizer
Version: 0.0.3
Summary: Python library for easily interacting with trained machine learning models
Author-email: Thadeus Zambellis <thaddeus.zambellis@gmail.com>
License-Expression: Apache-2.0
Keywords: gradio-custom-component,gradio-template-HTML
Classifier: Development Status :: 3 - Alpha
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Scientific/Engineering :: Visualization
Requires-Python: >=3.8
Requires-Dist: gradio<6.0,>=4.0
Requires-Dist: mcp
Requires-Dist: smolagents[mcp]
Provides-Extra: dev
Requires-Dist: build; extra == 'dev'
Requires-Dist: twine; extra == 'dev'
Description-Content-Type: text/markdown

# Gradio AI Agent Visualizer

**Gradio AI Agent Visualizer** is a visualizer for ai agents. It allows developers and researchers to explore the structure of your AI agents by rendering name, description, tools, models and managed agents,  in an intuitive and expandable UI.


## Features

- Visualize agent structure
- Expand/collapse nested tool
- Ability to pass a dict to the component (Flexability if you don't use smolagents)
- Automatic agent to dict helper function

## Usage

### Installation

```bash
pip install -r gradio-agentvisualizer
```

### Confugiration

```python
import gradio as gr
from gradio_agentvisualizer import AgentVisualizer, agent_to_dict

from demo_agents.custom_agent import manager_agent  # <--- Your custom smolagent

smolagent_dict = agent_to_dict(manager_agent)  # <--- Returns a dict of your agent that you can pass into the component

with gr.Blocks() as demo:
    with gr.Tab("Agent Visualizer"):
        AgentVisualizer(value=smolagent_dict)
```

---
tags: [gradio-custom-component, HTML]
title: gradio_agentvisualizer
short_description: A gradio custom component
colorFrom: blue
colorTo: yellow
sdk: gradio
pinned: false
app_file: space.py
---

