Skip to content

Commit e9857e8

Browse files
feat(api): api update
1 parent a6ba920 commit e9857e8

17 files changed

+92
-6
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: 78
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-d0a6e2309db88a60f84521dd672c4beac96b1fcda6145c045fa1251f5bcd4e4f.yml
3-
openapi_spec_hash: b618fb05e03c155c45d16d6a62093106
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-a329900168cdf7b34262f3d80d8f2b70510bef2f5458e50d95ba1725686e8b8d.yml
3+
openapi_spec_hash: 8c9e134ab7521e052e0cfa6f75a96f6b
44
config_hash: 84dec0743c13de8bb22f976814deaae9

src/runloop_api_client/resources/benchmarks/benchmarks.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def with_streaming_response(self) -> BenchmarksResourceWithStreamingResponse:
7171
def create(
7272
self,
7373
*,
74+
is_public: bool,
7475
name: str,
7576
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
7677
scenario_ids: Optional[List[str]] | NotGiven = NOT_GIVEN,
@@ -86,6 +87,8 @@ def create(
8687
Create a Benchmark with a set of Scenarios.
8788
8889
Args:
90+
is_public: Whether this benchmark is public.
91+
8992
name: The name of the Benchmark.
9093
9194
metadata: User defined metadata to attach to the benchmark for organization.
@@ -106,6 +109,7 @@ def create(
106109
"/v1/benchmarks",
107110
body=maybe_transform(
108111
{
112+
"is_public": is_public,
109113
"name": name,
110114
"metadata": metadata,
111115
"scenario_ids": scenario_ids,
@@ -331,6 +335,7 @@ def with_streaming_response(self) -> AsyncBenchmarksResourceWithStreamingRespons
331335
async def create(
332336
self,
333337
*,
338+
is_public: bool,
334339
name: str,
335340
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
336341
scenario_ids: Optional[List[str]] | NotGiven = NOT_GIVEN,
@@ -346,6 +351,8 @@ async def create(
346351
Create a Benchmark with a set of Scenarios.
347352
348353
Args:
354+
is_public: Whether this benchmark is public.
355+
349356
name: The name of the Benchmark.
350357
351358
metadata: User defined metadata to attach to the benchmark for organization.
@@ -366,6 +373,7 @@ async def create(
366373
"/v1/benchmarks",
367374
body=await async_maybe_transform(
368375
{
376+
"is_public": is_public,
369377
"name": name,
370378
"metadata": metadata,
371379
"scenario_ids": scenario_ids,

src/runloop_api_client/resources/scenarios/scenarios.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ def create(
9090
self,
9191
*,
9292
input_context: InputContextParam,
93+
is_public: bool,
9394
name: str,
9495
scoring_contract: ScoringContractParam,
9596
environment_parameters: Optional[ScenarioEnvironmentParam] | NotGiven = NOT_GIVEN,
@@ -110,6 +111,8 @@ def create(
110111
Args:
111112
input_context: The input context for the Scenario.
112113
114+
is_public: Whether this scenario is public.
115+
113116
name: Name of the scenario.
114117
115118
scoring_contract: The scoring contract for the Scenario.
@@ -137,6 +140,7 @@ def create(
137140
body=maybe_transform(
138141
{
139142
"input_context": input_context,
143+
"is_public": is_public,
140144
"name": name,
141145
"scoring_contract": scoring_contract,
142146
"environment_parameters": environment_parameters,
@@ -193,6 +197,7 @@ def update(
193197
id: str,
194198
*,
195199
input_context: InputContextParam,
200+
is_public: bool,
196201
name: str,
197202
scoring_contract: ScoringContractParam,
198203
environment_parameters: Optional[ScenarioEnvironmentParam] | NotGiven = NOT_GIVEN,
@@ -213,6 +218,8 @@ def update(
213218
Args:
214219
input_context: The input context for the Scenario.
215220
221+
is_public: Whether this scenario is public.
222+
216223
name: Name of the scenario.
217224
218225
scoring_contract: The scoring contract for the Scenario.
@@ -242,6 +249,7 @@ def update(
242249
body=maybe_transform(
243250
{
244251
"input_context": input_context,
252+
"is_public": is_public,
245253
"name": name,
246254
"scoring_contract": scoring_contract,
247255
"environment_parameters": environment_parameters,
@@ -513,6 +521,7 @@ async def create(
513521
self,
514522
*,
515523
input_context: InputContextParam,
524+
is_public: bool,
516525
name: str,
517526
scoring_contract: ScoringContractParam,
518527
environment_parameters: Optional[ScenarioEnvironmentParam] | NotGiven = NOT_GIVEN,
@@ -533,6 +542,8 @@ async def create(
533542
Args:
534543
input_context: The input context for the Scenario.
535544
545+
is_public: Whether this scenario is public.
546+
536547
name: Name of the scenario.
537548
538549
scoring_contract: The scoring contract for the Scenario.
@@ -560,6 +571,7 @@ async def create(
560571
body=await async_maybe_transform(
561572
{
562573
"input_context": input_context,
574+
"is_public": is_public,
563575
"name": name,
564576
"scoring_contract": scoring_contract,
565577
"environment_parameters": environment_parameters,
@@ -616,6 +628,7 @@ async def update(
616628
id: str,
617629
*,
618630
input_context: InputContextParam,
631+
is_public: bool,
619632
name: str,
620633
scoring_contract: ScoringContractParam,
621634
environment_parameters: Optional[ScenarioEnvironmentParam] | NotGiven = NOT_GIVEN,
@@ -636,6 +649,8 @@ async def update(
636649
Args:
637650
input_context: The input context for the Scenario.
638651
652+
is_public: Whether this scenario is public.
653+
639654
name: Name of the scenario.
640655
641656
scoring_contract: The scoring contract for the Scenario.
@@ -665,6 +680,7 @@ async def update(
665680
body=await async_maybe_transform(
666681
{
667682
"input_context": input_context,
683+
"is_public": is_public,
668684
"name": name,
669685
"scoring_contract": scoring_contract,
670686
"environment_parameters": environment_parameters,

src/runloop_api_client/types/benchmark_create_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99

1010

1111
class BenchmarkCreateParams(TypedDict, total=False):
12+
is_public: Required[bool]
13+
"""Whether this benchmark is public."""
14+
1215
name: Required[str]
1316
"""The name of the Benchmark."""
1417

src/runloop_api_client/types/benchmark_create_response.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Dict, List
3+
from typing import Dict, List, Optional
44

55
from pydantic import Field as FieldInfo
66

@@ -21,3 +21,6 @@ class BenchmarkCreateResponse(BaseModel):
2121

2222
scenario_ids: List[str] = FieldInfo(alias="scenarioIds")
2323
"""List of Scenario IDs that make up the benchmark."""
24+
25+
is_public: Optional[bool] = None
26+
"""Whether this benchmark is public."""

src/runloop_api_client/types/benchmark_list_public_response.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Dict, List
3+
from typing import Dict, List, Optional
44

55
from pydantic import Field as FieldInfo
66

@@ -21,3 +21,6 @@ class BenchmarkListPublicResponse(BaseModel):
2121

2222
scenario_ids: List[str] = FieldInfo(alias="scenarioIds")
2323
"""List of Scenario IDs that make up the benchmark."""
24+
25+
is_public: Optional[bool] = None
26+
"""Whether this benchmark is public."""

src/runloop_api_client/types/benchmark_list_response.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Dict, List
3+
from typing import Dict, List, Optional
44

55
from pydantic import Field as FieldInfo
66

@@ -21,3 +21,6 @@ class BenchmarkListResponse(BaseModel):
2121

2222
scenario_ids: List[str] = FieldInfo(alias="scenarioIds")
2323
"""List of Scenario IDs that make up the benchmark."""
24+
25+
is_public: Optional[bool] = None
26+
"""Whether this benchmark is public."""

src/runloop_api_client/types/benchmark_retrieve_response.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Dict, List
3+
from typing import Dict, List, Optional
44

55
from pydantic import Field as FieldInfo
66

@@ -21,3 +21,6 @@ class BenchmarkRetrieveResponse(BaseModel):
2121

2222
scenario_ids: List[str] = FieldInfo(alias="scenarioIds")
2323
"""List of Scenario IDs that make up the benchmark."""
24+
25+
is_public: Optional[bool] = None
26+
"""Whether this benchmark is public."""

src/runloop_api_client/types/scenario_create_params.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ class ScenarioCreateParams(TypedDict, total=False):
1616
input_context: Required[InputContextParam]
1717
"""The input context for the Scenario."""
1818

19+
is_public: Required[bool]
20+
"""Whether this scenario is public."""
21+
1922
name: Required[str]
2023
"""Name of the scenario."""
2124

src/runloop_api_client/types/scenario_create_response.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ class ScenarioCreateResponse(BaseModel):
2929
environment: Optional[ScenarioEnvironment] = None
3030
"""The Environment in which the Scenario is run."""
3131

32+
is_public: Optional[bool] = None
33+
"""Whether this scenario is public."""
34+
3235
reference_output: Optional[str] = None
3336
"""A string representation of the reference output to solve the scenario.
3437

0 commit comments

Comments
 (0)