Skip to content

feat(api): update API spec from langfuse/langfuse 8242934 - #1790

Merged
hassiebp merged 1 commit into
mainfrom
api-spec-bot-8242934-30453426847-1
Jul 29, 2026
Merged

feat(api): update API spec from langfuse/langfuse 8242934#1790
hassiebp merged 1 commit into
mainfrom
api-spec-bot-8242934-30453426847-1

Conversation

@langfuse-bot

@langfuse-bot langfuse-bot commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

Greptile Summary

The PR updates the generated API surface for logical-root observation filtering and moves score creation to the canonical scores resource while adding legacy compatibility aliases.

  • Adds isRootObservation to observation models and sync/async list filters.
  • Adds canonical sync/async score-create clients, raw methods, models, and package exports.
  • Redirects legacy high-level score creation and legacy score types to their canonical equivalents.

Confidence Score: 3/5

The PR should not merge until legacy raw-response score creation remains available alongside the high-level compatibility alias.

Removing create from both legacy raw clients while continuing to expose them through with_raw_response causes existing raw-response score creation calls to fail immediately with AttributeError.

Files Needing Attention: langfuse/api/legacy/score_v1/client.py and langfuse/api/legacy/score_v1/raw_client.py

Prompt To Fix All With AI
### Issue 1
langfuse/api/legacy/score_v1/client.py:54-56
**Legacy raw create is missing**

When callers use `client.legacy.score_v1.with_raw_response.create(...)`, `with_raw_response` returns a legacy raw client whose `create` method was removed, causing an `AttributeError` instead of creating the score and returning its HTTP response.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Reviews (1): Last reviewed commit: "feat(api): update API spec from langfuse..." | Re-trigger Greptile

Greptile also left 1 inline comment on this PR.

Context used:

@langfuse-bot
langfuse-bot requested a review from hassiebp July 29, 2026 12:54
@github-actions

Copy link
Copy Markdown

@claude review

Comment thread langfuse/api/legacy/score_v1/client.py
Comment thread langfuse/api/legacy/__init__.py
Comment thread langfuse/api/legacy/score_v1/raw_client.py
@hassiebp
hassiebp merged commit 87f47ab into main Jul 29, 2026
22 checks passed
@hassiebp
hassiebp deleted the api-spec-bot-8242934-30453426847-1 branch July 29, 2026 13:07
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