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.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for loongsuite_instrumentation_crewai-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e1804ccfe95baf5393ad734526a6eb1a914b8dcdfcf65dd692d4659d47d7b7f3
MD5 af0700e544efefae596b6651f5343ff3
BLAKE2b-256 4f1d2008916b42afcb7d4458a1ce58a657fc6c125ca89fc4bdfa4c746d854ac4

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