Skip to content

API Reference parrot.roost.carriers.inprocess

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

parrot.roost.carriers.inprocess

View source

In-process carrier: one asyncio.Queue per address, payloads by reference (FEAT-747 M7, resolved U5).

Alias AgentAddress

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

Alias Carrier

Re-exported from parrot.roost.carriers.base.Carrier.

Alias CarrierClosed

Re-exported from parrot.roost.carriers.base.CarrierClosed.

Alias CarrierKind

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

Class InProcessCarrier

Shared by every RoostEndpoint in the process. Never copies content.

Parameter Type Default Description
maxsize int 1024

Method InProcessCarrier.send

Put the same message object on every matching subscriber queue.

send(msg: RoostMessage) -> None

Parameter Type Default Description
msg RoostMessage

Method InProcessCarrier.subscribe

Create a queue and consumer task for address.

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

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

Returns: str

Method InProcessCarrier.unsubscribe

Cancel the consumer task of a subscription.

unsubscribe(subscription_id: str) -> bool

Parameter Type Default Description
subscription_id str

Returns: bool

Method InProcessCarrier.close

Cancel every consumer; subsequent sends raise CarrierClosed.

close() -> None

Method InProcessCarrier.pending

Queue depth for name (tests and the L-S1 metric).

pending(name: str) -> int

Parameter Type Default Description
name str

Returns: int

Alias Inbound

Re-exported from parrot.roost.carriers.base.Inbound.

Alias RoostMessage

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

Alias Undeliverable

Re-exported from parrot.roost.carriers.base.Undeliverable.

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