Skip to content

feat(langfuse): add Score event support#699

Open
danostrosky wants to merge 1 commit intocloudwego:mainfrom
danostrosky:feat/langfuse-score-support
Open

feat(langfuse): add Score event support#699
danostrosky wants to merge 1 commit intocloudwego:mainfrom
danostrosky:feat/langfuse-score-support

Conversation

@danostrosky
Copy link
Copy Markdown

Summary

  • Add ScoreEventBody struct and CreateScore API to the Langfuse SDK, enabling evaluation of LLM outputs via scores (e.g., user satisfaction, accuracy)
  • Wire Score into eventBodyUnion serialization, trace ID resolution, and observation ID resolution
  • Add unit tests and update mock

Test plan

  • go build ./... passes
  • go vet ./... passes
  • go test ./... passes (including new Score union test case)
  • Manual verification against a Langfuse instance with CreateScore calls

🤖 Generated with Claude Code

Implement ScoreEventBody and CreateScore API to enable evaluation of LLM
outputs via Langfuse scores (e.g., user satisfaction, accuracy metrics).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@shentongmartin shentongmartin added C-enhancement This is a PR that adds a new feature or fixes a bug. D-tracing Domain: this issue relates to tracing capability based on callback mechanism labels Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-enhancement This is a PR that adds a new feature or fixes a bug. D-tracing Domain: this issue relates to tracing capability based on callback mechanism

Development

Successfully merging this pull request may close these issues.

3 participants