bridge
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| ACPBridge aclientp.bridge.bridge Bridge that serves a stdio ACP agent over Streamable HTTP and WebSocket. |
🛈 DocStrings¶
ACP Bridge - serve a stdio ACP agent over Streamable HTTP and WebSocket.
Exposes a stdio agent on /acp per ACP's Streamable HTTP & WebSocket transport RFD
(see :mod:aclientp.http_server). Every client connection gets its own agent
subprocess; messages are relayed unchanged in both directions, so session updates and
agent requests (permissions, file access) reach the client.
ACPBridge
dataclass
¶
Bridge that serves a stdio ACP agent over Streamable HTTP and WebSocket.
Source code in src/aclientp/bridge/bridge.py
args
class-attribute
instance-attribute
¶
Arguments for the command.
command
instance-attribute
¶
ACP Agent shell command which should get spawned by the bridge.
cwd
class-attribute
instance-attribute
¶
Working directory for the subprocess.
env
class-attribute
instance-attribute
¶
Environment variables for the subprocess.
settings
class-attribute
instance-attribute
¶
settings: BridgeSettings = field(default_factory=BridgeSettings)
Bridge server settings.
run
async
¶
Run the bridge server.