Skip to content

Commit a3b50f5

Browse files
author
stlc-bot
committed
fix(mux): validate scenario custom scorer references
Stainless-Generated-From: e52c2baeebfbfd0e592b6918e43d7fc212d8da92
1 parent e666db1 commit a3b50f5

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

‎scripts/mock‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎src/runloop_api_client/types/scoring_function.py‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ class ScorerCustomScoringFunction(BaseModel):
6868
"""CustomScoringFunction is a custom, user defined scoring function."""
6969

7070
custom_scorer_type: str
71-
"""Type of the scoring function, previously registered with Runloop."""
71+
"""Type of the scoring function, previously registered with Runloop.
72+
73+
When creating or updating a scenario, must be non-empty and contain only
74+
letters, digits, underscores, and hyphens ([a-zA-Z0-9_-]+).
75+
"""
7276

7377
type: Literal["custom_scorer"]
7478

‎src/runloop_api_client/types/scoring_function_param.py‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@ class ScorerCustomScoringFunction(TypedDict, total=False):
6767
"""CustomScoringFunction is a custom, user defined scoring function."""
6868

6969
custom_scorer_type: Required[str]
70-
"""Type of the scoring function, previously registered with Runloop."""
70+
"""Type of the scoring function, previously registered with Runloop.
71+
72+
When creating or updating a scenario, must be non-empty and contain only
73+
letters, digits, underscores, and hyphens ([a-zA-Z0-9_-]+).
74+
"""
7175

7276
type: Required[Literal["custom_scorer"]]
7377

0 commit comments

Comments
 (0)