Skip to main content

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.

AI Trace Visualization

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai_trace-0.0.1.tar.gz (231.8 kB view details)

Uploaded Source

Built Distribution

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

ai_trace-0.0.1-py3-none-any.whl (233.1 kB view details)

Uploaded Python 3

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

Hashes for ai_trace-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7828d910953f7f85b8a2903b85dfda8c8b12dab8d68384e1c6204857eb90275e
MD5 38c2707f95096cf8112a53c6149003e5
BLAKE2b-256 6f98cb8fe2dc09de769f287c2f5e4cb470f257d0000e0369eb5acbc291e9fe76

See more details on using hashes here.

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

Hashes for ai_trace-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fead12d152924697e2f9d6796b420393c017ad6b92d95eb9acd6825d152e44f3
MD5 aa1cc5f3ba72ddb212b7c11d4d975200
BLAKE2b-256 d333daafdccb215083292b6b6198458a75efbaefaa2ff0842eb27e83e421419a

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