Skip to content

Commit e6e5208

Browse files
chore(scenarios): make scenario status enum instead of string (#7552)
1 parent 8b16ebe commit e6e5208

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 117
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-8704a652545c3831c8b7e246ec17f1a626b59911eb5701ddc922ca6cae1c8d57.yml
3-
openapi_spec_hash: e609bc5ed3fdce498bc7d16921bbba5e
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-1ee005e7d8f97067abb96c6a38af53b69d362f2511ca775a9b78580a9643c253.yml
3+
openapi_spec_hash: 9c54d19abf7993fd55714759f3265f9c
44
config_hash: eb28692edd68a6ae95cf92af931c9976

src/runloop_api_client/types/scenario_view.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,11 @@ class ScenarioView(BaseModel):
3131
scoring_contract: ScoringContract
3232
"""The scoring contract for the Scenario."""
3333

34-
status: str
35-
"""The state of the scenario."""
34+
status: Literal["active", "archived"]
35+
"""Whether the scenario is active or archived.
36+
37+
Archived scenarios are excluded from listings and cannot be updated.
38+
"""
3639

3740
environment: Optional[ScenarioEnvironment] = None
3841
"""The Environment in which the Scenario is run."""

0 commit comments

Comments
 (0)