Skip to content

feat(api): update API spec from langfuse/langfuse 8c1e50a#1527

Open
langfuse-bot wants to merge 1 commit intomainfrom
api-spec-bot-8c1e50a
Open

feat(api): update API spec from langfuse/langfuse 8c1e50a#1527
langfuse-bot wants to merge 1 commit intomainfrom
api-spec-bot-8c1e50a

Conversation

@langfuse-bot
Copy link
Collaborator

@langfuse-bot langfuse-bot commented Feb 18, 2026

Important

Deprecates parse_io_as_json and adds filter parameter for metadata filtering in observations_v_2 and score_v_2 clients.

  • Behavior:
    • Deprecates parse_io_as_json parameter in get_many() in observations_v_2/client.py and get() in score_v_2/client.py. Setting it to true returns a 400 error.
    • Adds filter parameter to get() in score_v_2/client.py for JSON stringified array of filter objects, supporting metadata filtering.
  • Documentation:
    • Updates reference.md to reflect deprecation of parse_io_as_json and addition of filter parameter.
    • Provides examples of filter usage in score_v_2/client.py documentation.
  • Misc:
    • Minor docstring updates in observations_v_2/client.py and score_v_2/client.py to reflect changes.

This description was created by Ellipsis 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:

  • Deprecates parse_io_as_json in observations_v_2 client: Docstrings updated to warn that setting this to true now returns a 400 error. The parameter is retained in the signature for backward compatibility but the server will reject it.
  • Adds filter parameter to score_v_2 client: Enables JSON-based metadata filtering on the scores endpoint, consistent with the existing filter parameter already available on observations and trace endpoints.

Both sync and async client variants are updated consistently. No logic issues found.

Confidence Score: 5/5

  • This PR is safe to merge — it contains auto-generated Fern API client updates with minimal, consistent changes.
  • All changes are auto-generated from the API spec. The deprecation is docstring-only (no breaking signature changes), and the new filter parameter follows the established pattern used by other endpoints. Sync and async clients are updated consistently.
  • No files require special attention.

Important Files Changed

Filename Overview
langfuse/api/resources/observations_v_2/client.py Docstring-only update: deprecates parse_io_as_json parameter in both sync and async get_many() methods. No code logic changes.
langfuse/api/resources/score_v_2/client.py Adds filter parameter to both ScoreV2Client.get() and AsyncScoreV2Client.get() — signature, docstring, and request params are all updated consistently.
langfuse/api/reference.md Documentation updated to reflect parse_io_as_json deprecation and new filter parameter 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 raised
Loading

Last reviewed commit: b80e37b

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3 files reviewed, no comments

Edit Code Review Agent Settings | Greptile

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

Comments