feat(api): update API spec from langfuse/langfuse 270f036#1521
Merged
feat(api): update API spec from langfuse/langfuse 270f036#1521
Conversation
sumerman
approved these changes
Feb 11, 2026
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.
Important
Adds
observation_idfilter toget()inScoreV2ClientandAsyncScoreV2Clientfor filtering scores by observation IDs.observation_idparameter toget()inScoreV2ClientandAsyncScoreV2Clientto filter scores by observation IDs.reference.mdto includeobservation_idparameter description.get()method inscore_v_2/client.pyto acceptobservation_idand include it in request parameters.score_v_2/client.pyto documentobservation_idparameter usage.This description was created by
for 3720157. You can customize this summary. It will automatically update as commits are pushed.
Disclaimer: Experimental PR review
Greptile Overview
Greptile Summary
This PR updates the generated Langfuse API client and reference docs to expose a new
observation_idfilter onclient.score_v_2.get()(sync + async). The client now forwards this as theobservationIdquery parameter toGET /api/public/v2/scores, and the API reference is updated to document the new argument.No correctness, integration, or import-order issues were found in the changeset; the update is consistent across sync/async clients and matches the existing codegen patterns.
Confidence Score: 5/5
Important Files Changed
observation_idparameter documentation forclient.score_v_2.get(); change matches existing reference format.observation_idfilter to sync/asyncScoreV2Client.get()and passes it asobservationIdquery param; imports remain at module top.Sequence Diagram
sequenceDiagram participant U as User participant SDK as langfuse-python SDK participant S as ScoreV2Client/AsyncScoreV2Client participant API as Langfuse API U->>SDK: client.score_v_2.get(..., observation_id=...) SDK->>S: get(observation_id=...) S->>API: GET /api/public/v2/scores?observationId=... API-->>S: 2xx GetScoresResponse JSON S-->>SDK: parse_obj_as(GetScoresResponse) SDK-->>U: GetScoresResponseContext used:
dashboard- Move imports to the top of the module instead of placing them within functions or methods. (source)