Skip to main content

LoongSuite CrewAI instrumentation

Project description

LoongSuite CrewAI Instrumentation

This library provides automatic instrumentation for CrewAI, a framework for orchestrating role-playing, autonomous AI agents.

Installation

# Step 1: install LoongSuite distro
pip install loongsuite-distro

# Step 2 (Option C): install this instrumentation from PyPI
pip install loongsuite-instrumentation-crewai

Usage

from opentelemetry.instrumentation.crewai import CrewAIInstrumentor

# Instrument CrewAI
CrewAIInstrumentor().instrument()

# Your CrewAI code here
from crewai import Agent, Task, Crew

agent = Agent(
    role='Data Analyst',
    goal='Extract actionable insights',
    backstory='Expert in data analysis',
    verbose=True
)

task = Task(
    description='Analyze the latest AI trends',
    agent=agent
)

crew = Crew(
    agents=[agent],
    tasks=[task],
    verbose=True
)

result = crew.kickoff()

Supported Versions

  • CrewAI >= 0.80.0

References

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

File details

Details for the file loongsuite_instrumentation_crewai-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for loongsuite_instrumentation_crewai-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 132d39a0725226f40ff4ccb51d57b00683b8b875bc0e3a5e788d6d587083e2a5
MD5 a19d0a2a6372a8e9fe1e52b09d5698a0
BLAKE2b-256 7780f0440644623ab47b1f4b81d6efe5bb2a9fe5fefdfb45c016919f1ccea5cf

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