Skip to content

feat: expose label to create scores API #133

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions literalai/api/score_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def create_scores_fields_builder(scores: List[ScoreDict]):
generated += f"""$name_{id}: String!
$type_{id}: ScoreType!
$value_{id}: Float!
$label_{id}: String
$stepId_{id}: String
$datasetExperimentItemId_{id}: String
$scorer_{id}: String
Expand All @@ -88,6 +89,7 @@ def create_scores_args_builder(scores: List[ScoreDict]):
name: $name_{id}
type: $type_{id}
value: $value_{id}
label: $label_{id}
stepId: $stepId_{id}
datasetExperimentItemId: $datasetExperimentItemId_{id}
scorer: $scorer_{id}
Expand All @@ -98,6 +100,7 @@ def create_scores_args_builder(scores: List[ScoreDict]):
name
type
value
label
comment
scorer
}}
Expand Down
Loading