Add your description here
Project description
AI Trace
AI Trace is a visualization tool for CrewAI workflows. It allows you to visualize your CrewAI agents, tasks, and tools in an interactive diagram.
Installation
pip install ai-trace
Usage
There are 2 main functions: view_crew and save_view.
from ai_trace.trace_crewai import view_crew, save_view
...
view_crew(crew) # Opens the visualization in your default browser
# Or save the visualization to a file
save_view(crew, "my_crew_visualization.html")
Full example
from crewai import Crew, Agent, Task
from ai_trace.trace_crewai import view_crew, save_view
# Create your CrewAI agents, tasks, and crew as usual
agent = Agent(
role="Data Scientist",
goal="Analyze data and provide insights",
backstory="You are an experienced data scientist with expertise in data analysis."
)
task = Task(
description="Analyze the dataset and provide insights",
expected_output="A detailed analysis report",
agent=agent
)
crew = Crew(
agents=[agent],
tasks=[task]
)
# Visualize your crew
view_crew(crew) # Opens the visualization in your default browser
# Or save the visualization to a file
save_view(crew, "my_crew_visualization.html")
Features
- Visualize CrewAI agents, tasks, and tools
- Interactive diagram with agent and task details
- Automatic layout of workflow components
- Save visualizations as HTML files for sharing
License
This project is licensed under a modified Commons Clause License. See the LICENSE file for details.
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 ai_trace-0.0.1.tar.gz.
File metadata
- Download URL: ai_trace-0.0.1.tar.gz
- Upload date:
- Size: 231.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.27
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7828d910953f7f85b8a2903b85dfda8c8b12dab8d68384e1c6204857eb90275e
|
|
| MD5 |
38c2707f95096cf8112a53c6149003e5
|
|
| BLAKE2b-256 |
6f98cb8fe2dc09de769f287c2f5e4cb470f257d0000e0369eb5acbc291e9fe76
|
File details
Details for the file ai_trace-0.0.1-py3-none-any.whl.
File metadata
- Download URL: ai_trace-0.0.1-py3-none-any.whl
- Upload date:
- Size: 233.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.27
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fead12d152924697e2f9d6796b420393c017ad6b92d95eb9acd6825d152e44f3
|
|
| MD5 |
aa1cc5f3ba72ddb212b7c11d4d975200
|
|
| BLAKE2b-256 |
d333daafdccb215083292b6b6198458a75efbaefaa2ff0842eb27e83e421419a
|