Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.37.0"
".": "0.38.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 86
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-141cac5a78c04271425090df61bb3f19446c1c065ae66a5b7a6329c53628aafa.yml
openapi_spec_hash: 2380917eddc78d715847c7ef6bfa3b4a
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-4cd38d2f4180cc9bd949f182a221d6221c44e7e0ec1ddc110dd7677ba822b51a.yml
openapi_spec_hash: e186fd7fd5f09ba496f0b7bb87365f3b
config_hash: 5b50498887b4fdca175b8377a9cb675f
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.38.0 (2025-06-04)

Full Changelog: [v0.37.0...v0.38.0](https://github.com/runloopai/api-client-python/compare/v0.37.0...v0.38.0)

### Features

* **api:** api update ([ecb87bd](https://github.com/runloopai/api-client-python/commit/ecb87bdf471fffd90e742ff3021859eb3e94db8c))

## 0.37.0 (2025-06-04)

Full Changelog: [v0.36.0...v0.37.0](https://github.com/runloopai/api-client-python/compare/v0.36.0...v0.37.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "runloop_api_client"
version = "0.37.0"
version = "0.38.0"
description = "The official Python library for the runloop API"
dynamic = ["readme"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/runloop_api_client/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "runloop_api_client"
__version__ = "0.37.0" # x-release-please-version
__version__ = "0.38.0" # x-release-please-version
12 changes: 12 additions & 0 deletions src/runloop_api_client/resources/benchmarks/runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

from __future__ import annotations

from typing_extensions import Literal

import httpx

from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
Expand Down Expand Up @@ -213,6 +215,8 @@ def list_scenario_runs(
*,
limit: int | NotGiven = NOT_GIVEN,
starting_after: str | NotGiven = NOT_GIVEN,
state: Literal["running", "scoring", "scored", "completed", "canceled", "timeout", "failed"]
| NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand All @@ -228,6 +232,8 @@ def list_scenario_runs(

starting_after: Load the next page of data starting after the item with the given ID.

state: Filter by Scenario Run state

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -250,6 +256,7 @@ def list_scenario_runs(
{
"limit": limit,
"starting_after": starting_after,
"state": state,
},
run_list_scenario_runs_params.RunListScenarioRunsParams,
),
Expand Down Expand Up @@ -448,6 +455,8 @@ def list_scenario_runs(
*,
limit: int | NotGiven = NOT_GIVEN,
starting_after: str | NotGiven = NOT_GIVEN,
state: Literal["running", "scoring", "scored", "completed", "canceled", "timeout", "failed"]
| NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand All @@ -463,6 +472,8 @@ def list_scenario_runs(

starting_after: Load the next page of data starting after the item with the given ID.

state: Filter by Scenario Run state

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -485,6 +496,7 @@ def list_scenario_runs(
{
"limit": limit,
"starting_after": starting_after,
"state": state,
},
run_list_scenario_runs_params.RunListScenarioRunsParams,
),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from typing_extensions import TypedDict
from typing_extensions import Literal, TypedDict

__all__ = ["RunListScenarioRunsParams"]

Expand All @@ -13,3 +13,6 @@ class RunListScenarioRunsParams(TypedDict, total=False):

starting_after: str
"""Load the next page of data starting after the item with the given ID."""

state: Literal["running", "scoring", "scored", "completed", "canceled", "timeout", "failed"]
"""Filter by Scenario Run state"""
2 changes: 2 additions & 0 deletions tests/api_resources/benchmarks/test_runs.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ def test_method_list_scenario_runs_with_all_params(self, client: Runloop) -> Non
id="id",
limit=0,
starting_after="starting_after",
state="running",
)
assert_matches_type(SyncBenchmarkRunsCursorIDPage[ScenarioRunView], run, path=["response"])

Expand Down Expand Up @@ -378,6 +379,7 @@ async def test_method_list_scenario_runs_with_all_params(self, async_client: Asy
id="id",
limit=0,
starting_after="starting_after",
state="running",
)
assert_matches_type(AsyncBenchmarkRunsCursorIDPage[ScenarioRunView], run, path=["response"])

Expand Down
Loading