Skip to content

feat(scores): add support for TEXT scores#1603

Draft
wochinge wants to merge 3 commits intomainfrom
tobias/lfe-9039-implement-python-sdk-changes-for-text-scores
Draft

feat(scores): add support for TEXT scores#1603
wochinge wants to merge 3 commits intomainfrom
tobias/lfe-9039-implement-python-sdk-changes-for-text-scores

Conversation

@wochinge
Copy link
Copy Markdown
Contributor

@wochinge wochinge commented Apr 1, 2026

Proposed Changes

  • update SDK to support new TEXT scores
  • Linear

@wochinge wochinge force-pushed the tobias/lfe-9039-implement-python-sdk-changes-for-text-scores branch 2 times, most recently from 244317f to ff37a66 Compare April 1, 2026 15:14
@wochinge
Copy link
Copy Markdown
Contributor Author

wochinge commented Apr 1, 2026

@claude review

wochinge and others added 3 commits April 1, 2026 19:00
Extend string-value overloads in create_score, score_current_span,
score_current_trace, score, and score_trace to accept TEXT alongside
CATEGORICAL. Update all related docstrings. Add ExperimentScoreType
to exclude TEXT from experiments/evals. Add integration test for TEXT
scores.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The spec update is now automated via PR from the langfuse repo.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Update cast(Literal["CATEGORICAL"], ...) to include "TEXT" in
score/score_trace/score_current_span/score_current_trace impl bodies.
Add ExperimentScoreType to __all__ in types.py.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@wochinge wochinge force-pushed the tobias/lfe-9039-implement-python-sdk-changes-for-text-scores branch from 06854a7 to b039ae7 Compare April 1, 2026 17:02
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.

1 participant