Skip to content

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

Open
@DanKing1903

Description

@DanKing1903

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Waiting for: Product Owner

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions