Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Agents: Example of observability for CrewAI #1621

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Conversation

sfc-gh-jreini
Copy link
Contributor

@sfc-gh-jreini sfc-gh-jreini commented Oct 31, 2024

Description

Changes added to base crewai example:

  • @instrument decorator added to tasks and agents in crew.py
  • Crew is instantiated in main.py and wrapped with TruCustomApp
  • crew is run in main.py using wrapped app trulens recorder as context manager

Other details good to know for developers

Current issues to sort through observed in experiments.

  • Not considering evals yet
  • The recording seems to end after 20 seconds or so. This could be due to the initial process ending.
  • True function names are obscured and recorded as memoized_func which is how CrewAI wraps their functions.
  • Input/output is not recorded correctly.

What is working well:

  • the trace details are included, so you can inspect the details of each agent/task

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to
    not work as expected)
  • New Tests
  • This change includes re-generated golden test results
  • This change requires a documentation update

Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants