Skip to content

Commit f9ec783

Browse files
feat: add BrokerMount to OpenAPI spec (#8282)
1 parent ceed348 commit f9ec783

File tree

9 files changed

+63
-5
lines changed

9 files changed

+63
-5
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 122
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-32e4b2dfb75745be076697d252bd80aff21c08464750928ffe2b7dd997d0b443.yml
3-
openapi_spec_hash: eb0ccabfcda0fb8c56b53939b56f6d80
4-
config_hash: c422b761c745873bce8fa5ccf03b7b98
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai%2Frunloop-efb88e3669a1c631b1537bb0872c94d29586dfc6e9f403418cdc53a21efdb0bc.yml
3+
openapi_spec_hash: 55189696e264bf48a712acf4df21a807
4+
config_hash: 2dbb07d90e3e2d37fa6645af119965d5

api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ from runloop_api_client.types import (
55
AfterIdle,
66
AgentMount,
77
AgentSource,
8+
BrokerMount,
89
CodeMountParameters,
910
LaunchParameters,
1011
Mount,

src/runloop_api_client/types/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
AgentMount as AgentMount,
99
RunProfile as RunProfile,
1010
AgentSource as AgentSource,
11+
BrokerMount as BrokerMount,
1112
ObjectMount as ObjectMount,
1213
LaunchParameters as LaunchParameters,
1314
CodeMountParameters as CodeMountParameters,

src/runloop_api_client/types/shared/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from .agent_mount import AgentMount as AgentMount
66
from .run_profile import RunProfile as RunProfile
77
from .agent_source import AgentSource as AgentSource
8+
from .broker_mount import BrokerMount as BrokerMount
89
from .object_mount import ObjectMount as ObjectMount
910
from .launch_parameters import LaunchParameters as LaunchParameters
1011
from .code_mount_parameters import CodeMountParameters as CodeMountParameters
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from typing import List, Optional
4+
from typing_extensions import Literal
5+
6+
from ..._models import BaseModel
7+
8+
__all__ = ["BrokerMount"]
9+
10+
11+
class BrokerMount(BaseModel):
12+
axon_id: str
13+
"""The ID of the axon event stream to mount onto the Devbox."""
14+
15+
type: Literal["broker_mount"]
16+
17+
agent_binary: Optional[str] = None
18+
"""Binary to launch the agent (e.g., 'opencode'). Used by ACP broker."""
19+
20+
launch_args: Optional[List[str]] = None
21+
"""Arguments to pass to the agent command (e.g., ['acp']). Used by ACP broker."""
22+
23+
protocol: Optional[Literal["acp", "claude", "codex"]] = None
24+
"""The protocol used by the broker to deliver events to the agent."""

src/runloop_api_client/types/shared/mount.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from ..._utils import PropertyInfo
77
from ..._models import BaseModel
88
from .agent_mount import AgentMount
9+
from .broker_mount import BrokerMount
910
from .object_mount import ObjectMount
1011

1112
__all__ = ["Mount", "CodeMount", "FileMount"]
@@ -40,4 +41,6 @@ class FileMount(BaseModel):
4041
type: Literal["file_mount"]
4142

4243

43-
Mount: TypeAlias = Annotated[Union[ObjectMount, AgentMount, CodeMount, FileMount], PropertyInfo(discriminator="type")]
44+
Mount: TypeAlias = Annotated[
45+
Union[ObjectMount, AgentMount, CodeMount, FileMount, BrokerMount], PropertyInfo(discriminator="type")
46+
]

src/runloop_api_client/types/shared_params/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from .agent_mount import AgentMount as AgentMount
66
from .run_profile import RunProfile as RunProfile
77
from .agent_source import AgentSource as AgentSource
8+
from .broker_mount import BrokerMount as BrokerMount
89
from .object_mount import ObjectMount as ObjectMount
910
from .launch_parameters import LaunchParameters as LaunchParameters
1011
from .code_mount_parameters import CodeMountParameters as CodeMountParameters
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from __future__ import annotations
4+
5+
from typing import Optional
6+
from typing_extensions import Literal, Required, TypedDict
7+
8+
from ..._types import SequenceNotStr
9+
10+
__all__ = ["BrokerMount"]
11+
12+
13+
class BrokerMount(TypedDict, total=False):
14+
axon_id: Required[str]
15+
"""The ID of the axon event stream to mount onto the Devbox."""
16+
17+
type: Required[Literal["broker_mount"]]
18+
19+
agent_binary: Optional[str]
20+
"""Binary to launch the agent (e.g., 'opencode'). Used by ACP broker."""
21+
22+
launch_args: Optional[SequenceNotStr[str]]
23+
"""Arguments to pass to the agent command (e.g., ['acp']). Used by ACP broker."""
24+
25+
protocol: Optional[Literal["acp", "claude", "codex"]]
26+
"""The protocol used by the broker to deliver events to the agent."""

src/runloop_api_client/types/shared_params/mount.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from typing_extensions import Literal, Required, TypeAlias, TypedDict
77

88
from .agent_mount import AgentMount
9+
from .broker_mount import BrokerMount
910
from .object_mount import ObjectMount
1011

1112
__all__ = ["Mount", "CodeMount", "FileMount"]
@@ -40,4 +41,4 @@ class FileMount(TypedDict, total=False):
4041
type: Required[Literal["file_mount"]]
4142

4243

43-
Mount: TypeAlias = Union[ObjectMount, AgentMount, CodeMount, FileMount]
44+
Mount: TypeAlias = Union[ObjectMount, AgentMount, CodeMount, FileMount, BrokerMount]

0 commit comments

Comments
 (0)