-
Notifications
You must be signed in to change notification settings - Fork 508
DSPy Callback Handler #1161
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
DSPy Callback Handler #1161
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Review Summary🏷️ Draft Comments (6)
|
WalkthroughThis PR introduces comprehensive DSPy integration into AgentOps, enabling detailed tracing and observability for DSPy workflows. It adds a new DSPy callback handler, updates the integration test workflow to cover a new DSPy example, and provides a sample calculator script demonstrating the integration. Additionally, it removes the deprecated 'TEAM' span kind from the span kinds definition, streamlining the codebase. Changes
Sequence DiagramThis diagram shows the interactions between components: sequenceDiagram
title DSPy ReAct Agent Integration Flow
actor User
participant "Documentation System" as Docs
participant "CI/CD Pipeline" as CI
participant "Examples Registry" as Registry
participant "OpenAI Agents" as OpenAI
participant "DSPy ReAct Agent" as DSPy
Note over User, DSPy: New DSPy ReAct Agent example added to the system
User->>Docs: Access documentation
Docs->>Registry: Request available examples
Registry-->>Docs: Return example list (including new DSPy example)
alt User selects DSPy example
User->>DSPy: Run DSPy ReAct Agent example
activate DSPy
Note right of DSPy: dspy_calculator.py execution
DSPy-->>User: Return calculation results
deactivate DSPy
else User selects OpenAI example
User->>OpenAI: Run OpenAI Agent example
activate OpenAI
Note right of OpenAI: agents_tools.py or customer_service_agent.py
OpenAI-->>User: Return agent response
deactivate OpenAI
end
Note over CI, Registry: CI/CD Pipeline Integration
User->>CI: Trigger build/test
CI->>Registry: Load example configurations
Registry-->>CI: Return updated example list
CI->>DSPy: Execute DSPy example tests
DSPy-->>CI: Return test results
CI-->>User: Report build status
Note for WindsurfPlease change the default marketplace provider to the following in the windsurf settings:Marketplace Extension Gallery Service URL: https://marketplace.visualstudio.com/_apis/public/gallery Marketplace Gallery Item URL: https://marketplace.visualstudio.com/items Entelligence.ai can learn from your feedback. Simply add 👍 / 👎 emojis to teach it your preferences. More shortcuts belowEmoji Descriptions:
Interact with the Bot:
Also you can trigger various commands with the bot by doing The current supported commands are
More commands to be added soon. |
|
LGTM 👍 |
* fix mcp docs * semconv changes * first pass * lol * second pass * dspy first draft * dspy second draft, removed misc. * decent, minimally compliant with semconv * precommit fix * dspy integration example --------- Co-authored-by: Pratyush Shukla <[email protected]>
📥 Pull Request
📘 Description
Addresses #88
Implemented callbacks, instrumentation is outstanding.
🧪 Testing
Tested on toy examples, documentation is outstanding.
EntelligenceAI PR Summary
This PR adds DSPy integration and tracing support to AgentOps, expands test coverage, and removes a deprecated span kind.