Repository navigation
Use batch score delivery and refresh SDK documentation - #132
Merged
Merged
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 0c2fbc7. Configure here.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

TL;DRSend scores through the batch Scores API and align SDK documentation with implemented behavior.
WhyKeep score IDs and timestamps stable across retries. Confirm synchronous acceptance and discard validation rejections without resending accepted scores. Score delivery requires Langfuse Cloud or self-hosted v4.59.0 or later; older backends require SDK 0.12.4. Correct stale examples and consolidate repeated documentation.
ChecklistVerificationRSpec and RuboCop passed with 97.20% coverage. HTTP tests cover retries and concurrency. Live Cloud checks with CLI and browser readback verified score delivery and documented prompt, cache, trace, dataset, experiment, and metrics workflows. Documentation links and Ruby examples were checked.
Note
Low Risk
Mostly documentation and a comment change; behavior change is limited to clarified test setup guidance, with no production code path changes shown in the diff.
Overview
Replaces long-form SDK documentation with shorter, contract-focused guides and updates install/readme notes so score delivery is tied to Langfuse Cloud or self-hosted >= 4.59.0, with a link into the scoring compatibility section.
CONTRIBUTING.md,docs/API_REFERENCE.md,docs/ARCHITECTURE.md,docs/CACHING.md,docs/CONFIGURATION.md, anddocs/DATASETS.mdare heavily trimmed: fewer tutorials and duplicate examples, more tables of methods/options, explicit limits (cache invalidation, SWR, fork/reset lifecycle), and pointers to topic guides.docs/README.mdis simplified into a task-to-guide index. Architecture and API reference now describe asynchronous scores as batch delivery viaPOST /api/public/scores, not ingestion-queue wording where that was updated.docs/TESTING.mdnow tells tests to settracing_enabled: trueandsample_rate: 1.0when using an in-memory span exporter, and to avoid relying onOTEL_SDK_DISABLEDalone. The only runtime diff in this patch is a YARD comment onPendingScoreQueue#push(score “body” vs “ingestion event”).Reviewed by Cursor Bugbot for commit 8bbc30a. Bugbot is set up for automated code reviews on this repo. Configure here.