Skip to content

Sentry LLM Monitoring does not capture tool use or thinking for Anthropic #4242

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

Open
DanKing1903 opened this issue Apr 4, 2025 · 0 comments

Comments

@DanKing1903
Copy link

When capturing LLM outputs sentry should capture tool use blocks and thinking blocks as part of the response object, this is vital information for developers working on LLM products. Currently only text responses are captured.

if hasattr(item, "text"):
responses.append(
{
"type": item.type,
"text": item.text,
}
)
return responses

https://docs.anthropic.com/en/api/messages#response-content

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Waiting for: Product Owner
Development

No branches or pull requests

3 participants