Skip to content

Commit 71ce0bf

Browse files
feat(mux): initial changes to enable http/2 (#8936)
1 parent b0299ba commit 71ce0bf

32 files changed

Lines changed: 234 additions & 160 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 119
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai/runloop-50d17fb0253accc4643a285686d99f3d7eb5eb715c6814a9c9625c15575a91de.yml
3-
openapi_spec_hash: 84a07dce1d08bb779058b3f282a78e8b
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai/runloop-3ed5d8482ad69c2c52b9387f0c16e9a5053115b6e4c64ff59a32a0ab3498d7e2.yml
3+
openapi_spec_hash: b48f3fb201ee657d669d937ca92c55bf
44
config_hash: 444e00951b440bf92e7548b2807584a4

src/runloop_api_client/resources/agents.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def create(
6868
Args:
6969
name: The name of the Agent.
7070
71-
source: The source configuration for the Agent.
71+
source: Agent source configuration.
7272
7373
version: Optional version identifier for the Agent. For npm/pip sources this is typically
7474
a semver string (e.g. '2.0.65'). For git sources it can be a branch or tag.
@@ -377,7 +377,7 @@ async def create(
377377
Args:
378378
name: The name of the Agent.
379379
380-
source: The source configuration for the Agent.
380+
source: Agent source configuration.
381381
382382
version: Optional version identifier for the Agent. For npm/pip sources this is typically
383383
a semver string (e.g. '2.0.65'). For git sources it can be a branch or tag.

src/runloop_api_client/resources/blueprints.py

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,9 @@ def create(
177177
178178
file_mounts: (Optional) Map of paths and file contents to write before setup.
179179
180-
launch_parameters: Parameters to configure your Devbox at launch time.
180+
launch_parameters: LaunchParameters enable you to customize the resources available to your Devbox
181+
as well as the environment set up that should be completed before the Devbox is
182+
marked as 'running'.
181183
182184
metadata: (Optional) User defined metadata for the Blueprint.
183185
@@ -529,7 +531,9 @@ def create_from_inspection(
529531
530532
file_mounts: (Optional) Map of paths and file contents to write before setup.
531533
532-
launch_parameters: Parameters to configure your Devbox at launch time.
534+
launch_parameters: LaunchParameters enable you to customize the resources available to your Devbox
535+
as well as the environment set up that should be completed before the Devbox is
536+
marked as 'running'.
533537
534538
metadata: (Optional) User defined metadata for the Blueprint.
535539
@@ -722,7 +726,9 @@ def preview(
722726
723727
file_mounts: (Optional) Map of paths and file contents to write before setup.
724728
725-
launch_parameters: Parameters to configure your Devbox at launch time.
729+
launch_parameters: LaunchParameters enable you to customize the resources available to your Devbox
730+
as well as the environment set up that should be completed before the Devbox is
731+
marked as 'running'.
726732
727733
metadata: (Optional) User defined metadata for the Blueprint.
728734
@@ -858,7 +864,9 @@ async def create(
858864
859865
file_mounts: (Optional) Map of paths and file contents to write before setup.
860866
861-
launch_parameters: Parameters to configure your Devbox at launch time.
867+
launch_parameters: LaunchParameters enable you to customize the resources available to your Devbox
868+
as well as the environment set up that should be completed before the Devbox is
869+
marked as 'running'.
862870
863871
metadata: (Optional) User defined metadata for the Blueprint.
864872
@@ -1210,7 +1218,9 @@ async def create_from_inspection(
12101218
12111219
file_mounts: (Optional) Map of paths and file contents to write before setup.
12121220
1213-
launch_parameters: Parameters to configure your Devbox at launch time.
1221+
launch_parameters: LaunchParameters enable you to customize the resources available to your Devbox
1222+
as well as the environment set up that should be completed before the Devbox is
1223+
marked as 'running'.
12141224
12151225
metadata: (Optional) User defined metadata for the Blueprint.
12161226
@@ -1403,7 +1413,9 @@ async def preview(
14031413
14041414
file_mounts: (Optional) Map of paths and file contents to write before setup.
14051415
1406-
launch_parameters: Parameters to configure your Devbox at launch time.
1416+
launch_parameters: LaunchParameters enable you to customize the resources available to your Devbox
1417+
as well as the environment set up that should be completed before the Devbox is
1418+
marked as 'running'.
14071419
14081420
metadata: (Optional) User defined metadata for the Blueprint.
14091421

src/runloop_api_client/resources/devboxes/devboxes.py

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ def create(
216216
the real API key. Example: {'GWS_ANTHROPIC': {'gateway': 'anthropic', 'secret':
217217
'my_claude_key'}}
218218
219-
launch_parameters: Parameters to configure the resources and launch time behavior of the Devbox.
219+
launch_parameters: LaunchParameters enable you to customize the resources available to your Devbox
220+
as well as the environment set up that should be completed before the Devbox is
221+
marked as 'running'.
220222
221223
mcp: [Beta] (Optional) MCP specifications for MCP server access. Map key is the
222224
environment variable name for the MCP token envelope. Each spec links an MCP
@@ -240,9 +242,8 @@ def create(
240242
snapshot_id: Snapshot ID to use for the Devbox. Only one of (Snapshot ID, Blueprint ID,
241243
Blueprint name) should be specified.
242244
243-
tunnel: (Optional) Configuration for creating a V2 tunnel at Devbox launch time. When
244-
specified, a tunnel will be automatically provisioned and the tunnel details
245-
will be included in the Devbox response.
245+
tunnel: Configuration for creating a V2 tunnel. When specified at Devbox creation, a
246+
tunnel will be automatically provisioned.
246247
247248
extra_headers: Send extra headers
248249
@@ -1877,7 +1878,9 @@ async def create(
18771878
the real API key. Example: {'GWS_ANTHROPIC': {'gateway': 'anthropic', 'secret':
18781879
'my_claude_key'}}
18791880
1880-
launch_parameters: Parameters to configure the resources and launch time behavior of the Devbox.
1881+
launch_parameters: LaunchParameters enable you to customize the resources available to your Devbox
1882+
as well as the environment set up that should be completed before the Devbox is
1883+
marked as 'running'.
18811884
18821885
mcp: [Beta] (Optional) MCP specifications for MCP server access. Map key is the
18831886
environment variable name for the MCP token envelope. Each spec links an MCP
@@ -1901,9 +1904,8 @@ async def create(
19011904
snapshot_id: Snapshot ID to use for the Devbox. Only one of (Snapshot ID, Blueprint ID,
19021905
Blueprint name) should be specified.
19031906
1904-
tunnel: (Optional) Configuration for creating a V2 tunnel at Devbox launch time. When
1905-
specified, a tunnel will be automatically provisioned and the tunnel details
1906-
will be included in the Devbox response.
1907+
tunnel: Configuration for creating a V2 tunnel. When specified at Devbox creation, a
1908+
tunnel will be automatically provisioned.
19071909
19081910
extra_headers: Send extra headers
19091911

src/runloop_api_client/resources/gateway_configs.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,8 @@ def update(
160160
All fields are optional.
161161
162162
Args:
163-
auth_mechanism: New authentication mechanism for applying credentials to proxied requests.
163+
auth_mechanism: Defines how credentials are applied to HTTP requests when proxying through the
164+
gateway.
164165
165166
description: New description for this gateway configuration.
166167
@@ -440,7 +441,8 @@ async def update(
440441
All fields are optional.
441442
442443
Args:
443-
auth_mechanism: New authentication mechanism for applying credentials to proxied requests.
444+
auth_mechanism: Defines how credentials are applied to HTTP requests when proxying through the
445+
gateway.
444446
445447
description: New description for this gateway configuration.
446448

src/runloop_api_client/resources/scenarios/scenarios.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ def create(
115115
116116
scoring_contract: The scoring contract for the Scenario.
117117
118-
environment_parameters: The Environment in which the Scenario will run.
118+
environment_parameters: ScenarioEnvironmentParameters specify the environment in which a Scenario will
119+
be run.
119120
120121
metadata: User defined metadata to attach to the scenario for organization.
121122
@@ -233,7 +234,8 @@ def update(
233234
entirely.
234235
235236
Args:
236-
environment_parameters: The Environment in which the Scenario will run.
237+
environment_parameters: ScenarioEnvironmentParameters specify the environment in which a Scenario will
238+
be run.
237239
238240
input_context: The input context for the Scenario.
239241
@@ -637,7 +639,8 @@ async def create(
637639
638640
scoring_contract: The scoring contract for the Scenario.
639641
640-
environment_parameters: The Environment in which the Scenario will run.
642+
environment_parameters: ScenarioEnvironmentParameters specify the environment in which a Scenario will
643+
be run.
641644
642645
metadata: User defined metadata to attach to the scenario for organization.
643646
@@ -755,7 +758,8 @@ async def update(
755758
entirely.
756759
757760
Args:
758-
environment_parameters: The Environment in which the Scenario will run.
761+
environment_parameters: ScenarioEnvironmentParameters specify the environment in which a Scenario will
762+
be run.
759763
760764
input_context: The input context for the Scenario.
761765

src/runloop_api_client/types/agent_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class AgentCreateParams(TypedDict, total=False):
1515
"""The name of the Agent."""
1616

1717
source: Optional[AgentSource]
18-
"""The source configuration for the Agent."""
18+
"""Agent source configuration."""
1919

2020
version: Optional[str]
2121
"""Optional version identifier for the Agent.

src/runloop_api_client/types/agent_view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class AgentView(BaseModel):
2424
"""The name of the Agent."""
2525

2626
source: Optional[AgentSource] = None
27-
"""The source configuration for the Agent."""
27+
"""Agent source configuration."""
2828

2929
version: Optional[str] = None
3030
"""Optional version identifier for the Agent.

src/runloop_api_client/types/benchmark_job_create_params.py

Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class SpecHarborJobSpec(TypedDict, total=False):
4343

4444

4545
class SpecBenchmarkDefinitionJobSpecAgentConfigAgentEnvironment(TypedDict, total=False):
46-
"""Environment configuration to use for this agent"""
46+
"""Environment configuration for an agent in a benchmark job"""
4747

4848
environment_variables: Optional[Dict[str, str]]
4949
"""Environment variables to set when launching the agent."""
@@ -64,7 +64,7 @@ class SpecBenchmarkDefinitionJobSpecAgentConfig(TypedDict, total=False):
6464
type: Required[Literal["job_agent"]]
6565

6666
agent_environment: Optional[SpecBenchmarkDefinitionJobSpecAgentConfigAgentEnvironment]
67-
"""Environment configuration to use for this agent"""
67+
"""Environment configuration for an agent in a benchmark job"""
6868

6969
agent_id: Optional[str]
7070
"""ID of the agent to use (optional if agent exists by name)"""
@@ -80,10 +80,7 @@ class SpecBenchmarkDefinitionJobSpecAgentConfig(TypedDict, total=False):
8080

8181

8282
class SpecBenchmarkDefinitionJobSpecOrchestratorConfig(TypedDict, total=False):
83-
"""Orchestrator configuration (optional overrides).
84-
85-
If not provided, default values will be used.
86-
"""
83+
"""Orchestrator configuration for benchmark job execution"""
8784

8885
n_attempts: Optional[int]
8986
"""Number of retry attempts on failure (default: 0).
@@ -125,14 +122,11 @@ class SpecBenchmarkDefinitionJobSpec(TypedDict, total=False):
125122
type: Required[Literal["benchmark"]]
126123

127124
orchestrator_config: Optional[SpecBenchmarkDefinitionJobSpecOrchestratorConfig]
128-
"""Orchestrator configuration (optional overrides).
129-
130-
If not provided, default values will be used.
131-
"""
125+
"""Orchestrator configuration for benchmark job execution"""
132126

133127

134128
class SpecScenarioDefinitionJobSpecAgentConfigAgentEnvironment(TypedDict, total=False):
135-
"""Environment configuration to use for this agent"""
129+
"""Environment configuration for an agent in a benchmark job"""
136130

137131
environment_variables: Optional[Dict[str, str]]
138132
"""Environment variables to set when launching the agent."""
@@ -153,7 +147,7 @@ class SpecScenarioDefinitionJobSpecAgentConfig(TypedDict, total=False):
153147
type: Required[Literal["job_agent"]]
154148

155149
agent_environment: Optional[SpecScenarioDefinitionJobSpecAgentConfigAgentEnvironment]
156-
"""Environment configuration to use for this agent"""
150+
"""Environment configuration for an agent in a benchmark job"""
157151

158152
agent_id: Optional[str]
159153
"""ID of the agent to use (optional if agent exists by name)"""
@@ -169,10 +163,7 @@ class SpecScenarioDefinitionJobSpecAgentConfig(TypedDict, total=False):
169163

170164

171165
class SpecScenarioDefinitionJobSpecOrchestratorConfig(TypedDict, total=False):
172-
"""Orchestrator configuration (optional overrides).
173-
174-
If not provided, default values will be used.
175-
"""
166+
"""Orchestrator configuration for benchmark job execution"""
176167

177168
n_attempts: Optional[int]
178169
"""Number of retry attempts on failure (default: 0).
@@ -211,10 +202,7 @@ class SpecScenarioDefinitionJobSpec(TypedDict, total=False):
211202
type: Required[Literal["scenarios"]]
212203

213204
orchestrator_config: Optional[SpecScenarioDefinitionJobSpecOrchestratorConfig]
214-
"""Orchestrator configuration (optional overrides).
215-
216-
If not provided, default values will be used.
217-
"""
205+
"""Orchestrator configuration for benchmark job execution"""
218206

219207

220208
Spec: TypeAlias = Union[SpecHarborJobSpec, SpecBenchmarkDefinitionJobSpec, SpecScenarioDefinitionJobSpec]

src/runloop_api_client/types/benchmark_job_view.py

Lines changed: 10 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@
3030

3131

3232
class BenchmarkOutcomeScenarioOutcomeFailureReason(BaseModel):
33-
"""Failure information if the scenario failed or timed out.
34-
35-
Contains exception type and message.
36-
"""
33+
"""Information about why a scenario execution failed"""
3734

3835
exception_message: str
3936
"""The exception message providing context"""
@@ -60,10 +57,7 @@ class BenchmarkOutcomeScenarioOutcome(BaseModel):
6057
"""Duration of the scenario execution in milliseconds."""
6158

6259
failure_reason: Optional[BenchmarkOutcomeScenarioOutcomeFailureReason] = None
63-
"""Failure information if the scenario failed or timed out.
64-
65-
Contains exception type and message.
66-
"""
60+
"""Information about why a scenario execution failed"""
6761

6862
scenario_run_id: Optional[str] = None
6963
"""The ID of the scenario run.
@@ -121,7 +115,7 @@ class InProgressRunAgentConfigExternalAPIAgentConfig(BaseModel):
121115

122116

123117
class InProgressRunAgentConfigJobAgentConfigAgentEnvironment(BaseModel):
124-
"""Environment configuration to use for this agent"""
118+
"""Environment configuration for an agent in a benchmark job"""
125119

126120
environment_variables: Optional[Dict[str, str]] = None
127121
"""Environment variables to set when launching the agent."""
@@ -142,7 +136,7 @@ class InProgressRunAgentConfigJobAgentConfig(BaseModel):
142136
type: Literal["job_agent"]
143137

144138
agent_environment: Optional[InProgressRunAgentConfigJobAgentConfigAgentEnvironment] = None
145-
"""Environment configuration to use for this agent"""
139+
"""Environment configuration for an agent in a benchmark job"""
146140

147141
agent_id: Optional[str] = None
148142
"""ID of the agent to use (optional if agent exists by name)"""
@@ -225,7 +219,7 @@ class JobSourceScenariosJobSource(BaseModel):
225219

226220

227221
class JobSpecAgentConfigAgentEnvironment(BaseModel):
228-
"""Environment configuration to use for this agent"""
222+
"""Environment configuration for an agent in a benchmark job"""
229223

230224
environment_variables: Optional[Dict[str, str]] = None
231225
"""Environment variables to set when launching the agent."""
@@ -246,7 +240,7 @@ class JobSpecAgentConfig(BaseModel):
246240
type: Literal["job_agent"]
247241

248242
agent_environment: Optional[JobSpecAgentConfigAgentEnvironment] = None
249-
"""Environment configuration to use for this agent"""
243+
"""Environment configuration for an agent in a benchmark job"""
250244

251245
agent_id: Optional[str] = None
252246
"""ID of the agent to use (optional if agent exists by name)"""
@@ -262,7 +256,7 @@ class JobSpecAgentConfig(BaseModel):
262256

263257

264258
class JobSpecOrchestratorConfig(BaseModel):
265-
"""Orchestrator configuration"""
259+
"""Orchestrator configuration for benchmark job execution"""
266260

267261
n_attempts: Optional[int] = None
268262
"""Number of retry attempts on failure (default: 0).
@@ -287,10 +281,7 @@ class JobSpecOrchestratorConfig(BaseModel):
287281

288282

289283
class JobSpec(BaseModel):
290-
"""The resolved job specification.
291-
292-
Contains scenarios, agents, and orchestrator config.
293-
"""
284+
"""Job specification describing scenarios and execution configuration"""
294285

295286
agent_configs: List[JobSpecAgentConfig]
296287
"""Agent configurations for this job"""
@@ -299,7 +290,7 @@ class JobSpec(BaseModel):
299290
"""List of scenario IDs to execute"""
300291

301292
orchestrator_config: Optional[JobSpecOrchestratorConfig] = None
302-
"""Orchestrator configuration"""
293+
"""Orchestrator configuration for benchmark job execution"""
303294

304295

305296
class BenchmarkJobView(BaseModel):
@@ -341,7 +332,4 @@ class BenchmarkJobView(BaseModel):
341332
"""
342333

343334
job_spec: Optional[JobSpec] = None
344-
"""The resolved job specification.
345-
346-
Contains scenarios, agents, and orchestrator config.
347-
"""
335+
"""Job specification describing scenarios and execution configuration"""

0 commit comments

Comments
 (0)