Skip to content

API Reference parrot.roost.carriers.bus

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

parrot.roost.carriers.bus

View source

navigator-eventbus carrier on a dedicated instance (FEAT-747 M9).

Alias AgentAddress

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

Alias Carrier

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

Alias CarrierKind

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

Alias EnvelopeCodec

Re-exported from parrot.roost.codec.EnvelopeCodec.

Class EventBusCarrier

Carry Roost messages over a dedicated navigator-eventbus instance.

Parameter Type Default Description
bus 'EventBus'
topic_prefix str 'roost'
dlq_topic str 'roost.dlq'
codec Optional[EnvelopeCodec] None
dedup_size int 10000

Method EventBusCarrier.send

Publish msg to each receiver or its capability category.

send(msg: RoostMessage) -> None

Parameter Type Default Description
msg RoostMessage

Method EventBusCarrier.subscribe

Subscribe an inbound callback to its addressed and capability topics.

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

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

Returns: str

Method EventBusCarrier.unsubscribe

Remove every bus subscription represented by subscription_id.

unsubscribe(subscription_id: str) -> bool

Parameter Type Default Description
subscription_id str

Returns: bool

Method EventBusCarrier.close

Unsubscribe carrier handlers without closing the caller-owned bus.

close() -> None

Method EventBusCarrier.to_event

Map a Roost message to a navigator event.

to_event(msg: RoostMessage, *, codec: EnvelopeCodec, prefix: str) -> 'Event'

Parameter Type Default Description
msg RoostMessage
codec EnvelopeCodec
prefix str

Returns: 'Event'

Method EventBusCarrier.from_event

Decode an event, raising LookupError when its codec is unknown.

from_event(event: 'Event', *, codecs: Mapping[str, EnvelopeCodec]) -> RoostMessage

Parameter Type Default Description
event 'Event'
codecs Mapping[str, EnvelopeCodec]

Returns: RoostMessage

Alias Inbound

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

Alias JsonEnvelopeCodec

Re-exported from parrot.roost.codec.JsonEnvelopeCodec.

Alias RoostMessage

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

Alias Undeliverable

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

Function build_roost_bus

Build a dedicated publish-and-subscribe Streams bus with an outbox.

build_roost_bus() -> 'EventBus'

Returns: 'EventBus'

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