Skip to content

Conversation

@clutchski
Copy link

This pull request adds the ability to add callbacks to Anthropic LLM calls for observability and other use cases. It also adds the missing callback handler and tests. It follows the same patterns as OpenAI (which is fully implemented).

PR Checklist

  • Read the Contributing documentation.
  • Read the Code of conduct documentation.
  • Name your Pull Request title clearly, concisely, and prefixed with the name of the primarily affected package you changed according to Good commit messages (such as memory: add interfaces for X, Y or util: add whizzbang helpers).
  • Check that there isn't already a PR that solves the problem the same way to avoid creating a duplicate.
  • Provide a description in this PR that addresses what the PR is solving, or reference the issue that it solves (e.g. Fixes #123).
  • Describes the source of new concepts.
  • References existing implementations as appropriate.
  • Contains test coverage for new functions.
  • Passes all golangci-lint checks.

@clutchski clutchski force-pushed the anthropic-callbacks branch from 1519f3f to e3d6fe0 Compare October 28, 2025 02:00
@clutchski
Copy link
Author

This is related to #949, but that one doesn't the options / tests / etc. It should close that PR.

@KerryJones
Copy link

+1 this would be immediately useful

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