Skip to content

fix(dspy): add adapter callback tracing#190

Merged
Abhijeet Prasad (AbhiPrasad) merged 2 commits intomainfrom
abhi-fix-176-dspy-adapter-callbacks
Apr 7, 2026
Merged

fix(dspy): add adapter callback tracing#190
Abhijeet Prasad (AbhiPrasad) merged 2 commits intomainfrom
abhi-fix-176-dspy-adapter-callbacks

Conversation

@AbhiPrasad
Copy link
Copy Markdown
Member

Implement DSPy adapter format and parse callbacks in BraintrustDSpyCallback so adapter-level prompt formatting and output parsing are traced alongside module and LM spans.

Add focused tests for the new adapter spans and extend the end-to-end DSPy integration test to assert the new callback coverage.

Closes #176

Implement DSPy adapter format and parse callbacks in BraintrustDSpyCallback so adapter-level prompt formatting and output parsing are traced alongside module and LM spans.

Add focused tests for the new adapter spans and extend the end-to-end DSPy integration test to assert the new callback coverage.

Closes #176
@starfolkai
Copy link
Copy Markdown

starfolkai bot commented Apr 1, 2026

Drop into this review session: sfk devbox connect pr-190-braintrust-sdk-python-8dcb --attach

No serious bugs or issues found 🎉

@AbhiPrasad Abhijeet Prasad (AbhiPrasad) merged commit 2bcd89c into main Apr 7, 2026
29 checks passed
@AbhiPrasad Abhijeet Prasad (AbhiPrasad) deleted the abhi-fix-176-dspy-adapter-callbacks branch April 7, 2026 13:34
Abhijeet Prasad (AbhiPrasad) added a commit that referenced this pull request Apr 7, 2026
* fix(dspy): add adapter callback tracing

Implement DSPy adapter format and parse callbacks in BraintrustDSpyCallback so adapter-level prompt formatting and output parsing are traced alongside module and LM spans.

Add focused tests for the new adapter spans and extend the end-to-end DSPy integration test to assert the new callback coverage.

Closes #176

* fix(dspy): avoid pylint false positive in test
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.

DSPy: adapter format and parse callbacks not implemented

2 participants