Skip to content

Commit 6e96bda

Browse files
chore: rename AI Gateway to Agent Gateway (#7687)
1 parent 0c64614 commit 6e96bda

File tree

10 files changed

+50
-51
lines changed

10 files changed

+50
-51
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: 118
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-3bde463fcdfe8cd4bdb47a6e14cf41c7a61e2638071ad093de9c492c96ad36bd.yml
3-
openapi_spec_hash: e790f738711f3a87d006728ccdd26eee
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-439b1a08248ef3bc7457c7b0a9a6218149732535a9f0dd541501fc35e2a3f8c2.yml
3+
openapi_spec_hash: 35b12a086d98484417ce3d2543c47929
44
config_hash: cbda3692cb48ab8582a0df1674b9e5c8

src/runloop_api_client/resources/devboxes/devboxes.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,10 @@ def create(
234234
235235
file_mounts: Map of paths and file contents to write before setup. Use mounts instead.
236236
237-
gateways: [Beta] (Optional) Gateway specifications for credential proxying. Map key is the
238-
environment variable prefix (e.g., 'GWS_ANTHROPIC'). The gateway will proxy
239-
requests to external APIs using the specified credential without exposing the
240-
real API key. Example: {'GWS_ANTHROPIC': {'gateway': 'anthropic', 'secret':
237+
gateways: (Optional) Agent gateway specifications for credential proxying. Map key is the
238+
environment variable prefix (e.g., 'GWS_ANTHROPIC'). The agent gateway will
239+
proxy requests to external APIs using the specified credential without exposing
240+
the real API key. Example: {'GWS_ANTHROPIC': {'gateway': 'anthropic', 'secret':
241241
'my_claude_key'}}
242242
243243
launch_parameters: Parameters to configure the resources and launch time behavior of the Devbox.
@@ -1912,10 +1912,10 @@ async def create(
19121912
19131913
file_mounts: Map of paths and file contents to write before setup. Use mounts instead.
19141914
1915-
gateways: [Beta] (Optional) Gateway specifications for credential proxying. Map key is the
1916-
environment variable prefix (e.g., 'GWS_ANTHROPIC'). The gateway will proxy
1917-
requests to external APIs using the specified credential without exposing the
1918-
real API key. Example: {'GWS_ANTHROPIC': {'gateway': 'anthropic', 'secret':
1915+
gateways: (Optional) Agent gateway specifications for credential proxying. Map key is the
1916+
environment variable prefix (e.g., 'GWS_ANTHROPIC'). The agent gateway will
1917+
proxy requests to external APIs using the specified credential without exposing
1918+
the real API key. Example: {'GWS_ANTHROPIC': {'gateway': 'anthropic', 'secret':
19191919
'my_claude_key'}}
19201920
19211921
launch_parameters: Parameters to configure the resources and launch time behavior of the Devbox.

src/runloop_api_client/resources/gateway_configs.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,10 @@ def create(
5959
timeout: float | httpx.Timeout | None | NotGiven = not_given,
6060
idempotency_key: str | None = None,
6161
) -> GatewayConfigView:
62-
"""
63-
Create a new GatewayConfig to proxy API requests through the credential gateway.
64-
The config specifies the target endpoint and how credentials should be applied.
62+
"""Create a new GatewayConfig to proxy API requests through the agent gateway.
63+
64+
The
65+
config specifies the target endpoint and how credentials should be applied.
6566
6667
Args:
6768
auth_mechanism: How credentials should be applied to proxied requests. Specify the type
@@ -333,9 +334,10 @@ async def create(
333334
timeout: float | httpx.Timeout | None | NotGiven = not_given,
334335
idempotency_key: str | None = None,
335336
) -> GatewayConfigView:
336-
"""
337-
Create a new GatewayConfig to proxy API requests through the credential gateway.
338-
The config specifies the target endpoint and how credentials should be applied.
337+
"""Create a new GatewayConfig to proxy API requests through the agent gateway.
338+
339+
The
340+
config specifies the target endpoint and how credentials should be applied.
339341
340342
Args:
341343
auth_mechanism: How credentials should be applied to proxied requests. Specify the type

src/runloop_api_client/resources/network_policies.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def create(
4848
self,
4949
*,
5050
name: str,
51-
allow_ai_gateway: Optional[bool] | Omit = omit,
51+
allow_agent_gateway: Optional[bool] | Omit = omit,
5252
allow_all: Optional[bool] | Omit = omit,
5353
allow_devbox_to_devbox: Optional[bool] | Omit = omit,
5454
allow_mcp_gateway: Optional[bool] | Omit = omit,
@@ -71,8 +71,8 @@ def create(
7171
name: The human-readable name for the NetworkPolicy. Must be unique within the
7272
account.
7373
74-
allow_ai_gateway: (Optional) If true, allows devbox egress to the AI credential gateway for
75-
credential proxying. Defaults to false.
74+
allow_agent_gateway: (Optional) If true, allows devbox egress to the agent gateway for credential
75+
proxying. Defaults to false.
7676
7777
allow_all: (Optional) If true, all egress traffic is allowed (ALLOW_ALL policy). Defaults
7878
to false.
@@ -104,7 +104,7 @@ def create(
104104
body=maybe_transform(
105105
{
106106
"name": name,
107-
"allow_ai_gateway": allow_ai_gateway,
107+
"allow_agent_gateway": allow_agent_gateway,
108108
"allow_all": allow_all,
109109
"allow_devbox_to_devbox": allow_devbox_to_devbox,
110110
"allow_mcp_gateway": allow_mcp_gateway,
@@ -160,7 +160,7 @@ def update(
160160
self,
161161
id: str,
162162
*,
163-
allow_ai_gateway: Optional[bool] | Omit = omit,
163+
allow_agent_gateway: Optional[bool] | Omit = omit,
164164
allow_all: Optional[bool] | Omit = omit,
165165
allow_devbox_to_devbox: Optional[bool] | Omit = omit,
166166
allow_mcp_gateway: Optional[bool] | Omit = omit,
@@ -180,7 +180,7 @@ def update(
180180
All fields are optional.
181181
182182
Args:
183-
allow_ai_gateway: If true, allows devbox egress to the AI credential gateway.
183+
allow_agent_gateway: If true, allows devbox egress to the agent gateway.
184184
185185
allow_all: If true, all egress traffic is allowed (ALLOW_ALL policy).
186186
@@ -211,7 +211,7 @@ def update(
211211
f"/v1/network-policies/{id}",
212212
body=maybe_transform(
213213
{
214-
"allow_ai_gateway": allow_ai_gateway,
214+
"allow_agent_gateway": allow_agent_gateway,
215215
"allow_all": allow_all,
216216
"allow_devbox_to_devbox": allow_devbox_to_devbox,
217217
"allow_mcp_gateway": allow_mcp_gateway,
@@ -352,7 +352,7 @@ async def create(
352352
self,
353353
*,
354354
name: str,
355-
allow_ai_gateway: Optional[bool] | Omit = omit,
355+
allow_agent_gateway: Optional[bool] | Omit = omit,
356356
allow_all: Optional[bool] | Omit = omit,
357357
allow_devbox_to_devbox: Optional[bool] | Omit = omit,
358358
allow_mcp_gateway: Optional[bool] | Omit = omit,
@@ -375,8 +375,8 @@ async def create(
375375
name: The human-readable name for the NetworkPolicy. Must be unique within the
376376
account.
377377
378-
allow_ai_gateway: (Optional) If true, allows devbox egress to the AI credential gateway for
379-
credential proxying. Defaults to false.
378+
allow_agent_gateway: (Optional) If true, allows devbox egress to the agent gateway for credential
379+
proxying. Defaults to false.
380380
381381
allow_all: (Optional) If true, all egress traffic is allowed (ALLOW_ALL policy). Defaults
382382
to false.
@@ -408,7 +408,7 @@ async def create(
408408
body=await async_maybe_transform(
409409
{
410410
"name": name,
411-
"allow_ai_gateway": allow_ai_gateway,
411+
"allow_agent_gateway": allow_agent_gateway,
412412
"allow_all": allow_all,
413413
"allow_devbox_to_devbox": allow_devbox_to_devbox,
414414
"allow_mcp_gateway": allow_mcp_gateway,
@@ -464,7 +464,7 @@ async def update(
464464
self,
465465
id: str,
466466
*,
467-
allow_ai_gateway: Optional[bool] | Omit = omit,
467+
allow_agent_gateway: Optional[bool] | Omit = omit,
468468
allow_all: Optional[bool] | Omit = omit,
469469
allow_devbox_to_devbox: Optional[bool] | Omit = omit,
470470
allow_mcp_gateway: Optional[bool] | Omit = omit,
@@ -484,7 +484,7 @@ async def update(
484484
All fields are optional.
485485
486486
Args:
487-
allow_ai_gateway: If true, allows devbox egress to the AI credential gateway.
487+
allow_agent_gateway: If true, allows devbox egress to the agent gateway.
488488
489489
allow_all: If true, all egress traffic is allowed (ALLOW_ALL policy).
490490
@@ -515,7 +515,7 @@ async def update(
515515
f"/v1/network-policies/{id}",
516516
body=await async_maybe_transform(
517517
{
518-
"allow_ai_gateway": allow_ai_gateway,
518+
"allow_agent_gateway": allow_agent_gateway,
519519
"allow_all": allow_all,
520520
"allow_devbox_to_devbox": allow_devbox_to_devbox,
521521
"allow_mcp_gateway": allow_mcp_gateway,

src/runloop_api_client/types/devbox_create_params.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ class DevboxBaseCreateParams(TypedDict, total=False):
3838
"""Map of paths and file contents to write before setup. Use mounts instead."""
3939

4040
gateways: Optional[Dict[str, Gateways]]
41-
"""[Beta] (Optional) Gateway specifications for credential proxying.
41+
"""(Optional) Agent gateway specifications for credential proxying.
4242
43-
Map key is the environment variable prefix (e.g., 'GWS_ANTHROPIC'). The gateway
44-
will proxy requests to external APIs using the specified credential without
45-
exposing the real API key. Example: {'GWS_ANTHROPIC': {'gateway': 'anthropic',
46-
'secret': 'my_claude_key'}}
43+
Map key is the environment variable prefix (e.g., 'GWS_ANTHROPIC'). The agent
44+
gateway will proxy requests to external APIs using the specified credential
45+
without exposing the real API key. Example: {'GWS_ANTHROPIC': {'gateway':
46+
'anthropic', 'secret': 'my_claude_key'}}
4747
"""
4848

4949
launch_parameters: Optional[LaunchParameters]
@@ -112,7 +112,7 @@ class DevboxCreateParams(DevboxBaseCreateParams, total=False):
112112

113113
class Gateways(TypedDict, total=False):
114114
"""
115-
[Beta] GatewaySpec links a gateway configuration to a secret for credential proxying in a devbox. The gateway will proxy requests to external APIs using the specified credential without exposing the real API key.
115+
GatewaySpec links an agent gateway configuration to a secret for credential proxying in a devbox. The agent gateway will proxy requests to external APIs using the specified credential without exposing the real API key.
116116
"""
117117

118118
gateway: Required[str]

src/runloop_api_client/types/gateway_config_view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class AuthMechanism(BaseModel):
1919

2020
class GatewayConfigView(BaseModel):
2121
"""
22-
A GatewayConfig defines a configuration for proxying API requests through the credential gateway. It specifies the target endpoint and how credentials should be applied.
22+
A GatewayConfig defines a configuration for proxying API requests through the agent gateway. It specifies the target endpoint and how credentials should be applied.
2323
"""
2424

2525
id: str

src/runloop_api_client/types/network_policy_create_params.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ class NetworkPolicyCreateParams(TypedDict, total=False):
1717
Must be unique within the account.
1818
"""
1919

20-
allow_ai_gateway: Optional[bool]
20+
allow_agent_gateway: Optional[bool]
2121
"""
22-
(Optional) If true, allows devbox egress to the AI credential gateway for
23-
credential proxying. Defaults to false.
22+
(Optional) If true, allows devbox egress to the agent gateway for credential
23+
proxying. Defaults to false.
2424
"""
2525

2626
allow_all: Optional[bool]

src/runloop_api_client/types/network_policy_update_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212

1313
class NetworkPolicyUpdateParams(TypedDict, total=False):
14-
allow_ai_gateway: Optional[bool]
15-
"""If true, allows devbox egress to the AI credential gateway."""
14+
allow_agent_gateway: Optional[bool]
15+
"""If true, allows devbox egress to the agent gateway."""
1616

1717
allow_all: Optional[bool]
1818
"""If true, all egress traffic is allowed (ALLOW_ALL policy)."""

src/runloop_api_client/types/network_policy_view.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,8 @@
1010
class Egress(BaseModel):
1111
"""The egress rules for this policy."""
1212

13-
allow_ai_gateway: bool
14-
"""
15-
If true, allows devbox egress to the AI credential gateway for credential
16-
proxying.
17-
"""
13+
allow_agent_gateway: bool
14+
"""If true, allows devbox egress to the agent gateway for credential proxying."""
1815

1916
allow_all: bool
2017
"""If true, all egress traffic is allowed and other fields are ignored.

tests/api_resources/test_network_policies.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def test_method_create(self, client: Runloop) -> None:
3131
def test_method_create_with_all_params(self, client: Runloop) -> None:
3232
network_policy = client.network_policies.create(
3333
name="name",
34-
allow_ai_gateway=True,
34+
allow_agent_gateway=True,
3535
allow_all=True,
3636
allow_devbox_to_devbox=True,
3737
allow_mcp_gateway=True,
@@ -113,7 +113,7 @@ def test_method_update(self, client: Runloop) -> None:
113113
def test_method_update_with_all_params(self, client: Runloop) -> None:
114114
network_policy = client.network_policies.update(
115115
id="id",
116-
allow_ai_gateway=True,
116+
allow_agent_gateway=True,
117117
allow_all=True,
118118
allow_devbox_to_devbox=True,
119119
allow_mcp_gateway=True,
@@ -244,7 +244,7 @@ async def test_method_create(self, async_client: AsyncRunloop) -> None:
244244
async def test_method_create_with_all_params(self, async_client: AsyncRunloop) -> None:
245245
network_policy = await async_client.network_policies.create(
246246
name="name",
247-
allow_ai_gateway=True,
247+
allow_agent_gateway=True,
248248
allow_all=True,
249249
allow_devbox_to_devbox=True,
250250
allow_mcp_gateway=True,
@@ -326,7 +326,7 @@ async def test_method_update(self, async_client: AsyncRunloop) -> None:
326326
async def test_method_update_with_all_params(self, async_client: AsyncRunloop) -> None:
327327
network_policy = await async_client.network_policies.update(
328328
id="id",
329-
allow_ai_gateway=True,
329+
allow_agent_gateway=True,
330330
allow_all=True,
331331
allow_devbox_to_devbox=True,
332332
allow_mcp_gateway=True,

0 commit comments

Comments
 (0)