Skip to content

API Reference parrot.roost.carriers.base

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot.roost.carriers.base

View source

Carrier contract (FEAT-747 M7). The protocol is identical on every carrier; only payload passing differs.

Alias AgentAddress

Re-exported from parrot.roost.messages.AgentAddress.

Class Carrier

Transport contract implemented by every Roost carrier.

Attributes:

Attribute Type Description
kind CarrierKind

Method Carrier.send

Deliver to every receiver (or every subscriber matching capability_filter). Raises Undeliverable.

send(msg: RoostMessage) -> None

Parameter Type Default Description
msg RoostMessage

Method Carrier.subscribe

Register inbound for address; return a subscription id.

subscribe(address: AgentAddress, inbound: Inbound, *, capabilities: Sequence[str] = ()) -> str

Parameter Type Default Description
address AgentAddress
inbound Inbound
capabilities Sequence[str] ()

Returns: str

Method Carrier.unsubscribe

Remove a subscription; return whether it existed.

unsubscribe(subscription_id: str) -> bool

Parameter Type Default Description
subscription_id str

Returns: bool

Method Carrier.close

Release every resource held by the carrier.

close() -> None

Class CarrierClosed

The carrier has been closed.

Class CarrierError

Base class for carrier failures.

Alias CarrierKind

Re-exported from parrot.roost.performatives.CarrierKind.

Attribute Inbound

Alias RoostMessage

Re-exported from parrot.roost.messages.RoostMessage.

Class Undeliverable

No recipient could be found for a message.

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