Skip to content

API Reference parrot.integrations.devloop.bridge

github-actions[bot] edited this page Nov 10, 2026 · 4 revisions

parrot.integrations.devloop.bridge

View source

Command channel to a headless child (spec §3 Module 6; S4 token in both modes).

Alias BridgeResult

Re-exported from parrot.integrations.devloop.models.BridgeResult.

Alias CancelRunRequest

Re-exported from parrot.flows.dev_loop.commands.CancelRunRequest.

Class LoopbackRestChannel

RunCommandChannel over the child's register_command_routes (Unix socket or 127.0.0.1 TCP).

Parameter Type Default Description
endpoint str
token str
timeout float 10.0

Method LoopbackRestChannel.resolve_gate

POST the existing gate-resolve contract to the child.

resolve_gate(run_id: str, gate_id: str, *, resolution: str, resolved_by: str, comment: str = '', answers: Optional[dict] = None) -> BridgeResult

Parameter Type Default Description
run_id str
gate_id str
resolution str
resolved_by str
comment str ''
answers Optional[dict] None

Returns: BridgeResult

Method LoopbackRestChannel.cancel

POST the existing cancel contract to the child.

cancel(run_id: str, *, requested_by: str) -> BridgeResult

Parameter Type Default Description
run_id str
requested_by str

Returns: BridgeResult

Method LoopbackRestChannel.probe

Any HTTP response (even 401/404) means the child is listening.

probe() -> bool

Returns: bool — True when the endpoint answers at all; False on a connection error (used by re-attach, AC13).

Alias ResolveGateRequest

Re-exported from parrot.flows.dev_loop.commands.ResolveGateRequest.

Class RunCommandChannel

Inbound command path to one run. A Redis implementation may replace this later (brainstorm Option B).

Method RunCommandChannel.resolve_gate

resolve_gate(run_id: str, gate_id: str, *, resolution: str, resolved_by: str, comment: str = '', answers: Optional[dict] = None) -> BridgeResult

Parameter Type Default Description
run_id str
gate_id str
resolution str
resolved_by str
comment str ''
answers Optional[dict] None

Returns: BridgeResult

Method RunCommandChannel.cancel

cancel(run_id: str, *, requested_by: str) -> BridgeResult

Parameter Type Default Description
run_id str
requested_by str

Returns: BridgeResult

Method RunCommandChannel.probe

probe() -> bool

Returns: bool

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally