feat(api): update API spec from langfuse/langfuse 8c1e50a#1527
Open
langfuse-bot wants to merge 1 commit intomainfrom
Open
feat(api): update API spec from langfuse/langfuse 8c1e50a#1527langfuse-bot wants to merge 1 commit intomainfrom
langfuse-bot wants to merge 1 commit intomainfrom
Conversation
sumerman
approved these changes
Feb 18, 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
Deprecates
parse_io_as_jsonand addsfilterparameter for metadata filtering inobservations_v_2andscore_v_2clients.parse_io_as_jsonparameter inget_many()inobservations_v_2/client.pyandget()inscore_v_2/client.py. Setting it totruereturns a 400 error.filterparameter toget()inscore_v_2/client.pyfor JSON stringified array of filter objects, supporting metadata filtering.reference.mdto reflect deprecation ofparse_io_as_jsonand addition offilterparameter.filterusage inscore_v_2/client.pydocumentation.observations_v_2/client.pyandscore_v_2/client.pyto reflect changes.This description was created by
for b80e37b. You can customize this summary. It will automatically update as commits are pushed.
Disclaimer: Experimental PR review
Greptile Summary
Auto-generated API spec update from Fern that makes two changes:
parse_io_as_jsoninobservations_v_2client: Docstrings updated to warn that setting this totruenow returns a 400 error. The parameter is retained in the signature for backward compatibility but the server will reject it.filterparameter toscore_v_2client: Enables JSON-based metadata filtering on the scores endpoint, consistent with the existingfilterparameter already available on observations and trace endpoints.Both sync and async client variants are updated consistently. No logic issues found.
Confidence Score: 5/5
filterparameter follows the established pattern used by other endpoints. Sync and async clients are updated consistently.Important Files Changed
parse_io_as_jsonparameter in both sync and asyncget_many()methods. No code logic changes.filterparameter to bothScoreV2Client.get()andAsyncScoreV2Client.get()— signature, docstring, and request params are all updated consistently.parse_io_as_jsondeprecation and newfilterparameter for scores endpoint.Sequence Diagram
sequenceDiagram participant Client participant ScoreV2Client participant API as Langfuse API /v2/scores Client->>ScoreV2Client: get(filter='[{"type":"stringObject",...}]') ScoreV2Client->>API: GET /api/public/v2/scores?filter=... API-->>ScoreV2Client: GetScoresResponse (filtered by metadata) ScoreV2Client-->>Client: GetScoresResponse Note over Client,API: New filter parameter enables<br/>metadata-based score filtering Client->>ScoreV2Client: get(parse_io_as_json=True) Note right of ScoreV2Client: parse_io_as_json is deprecated<br/>in observations_v2 ScoreV2Client->>API: GET /api/public/v2/observations?parseIoAsJson=true API-->>ScoreV2Client: 400 Error ScoreV2Client-->>Client: Error raisedLast reviewed commit: b80e37b