Skip to content

API Reference parrot.roost.carriers.shm

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

parrot.roost.carriers.shm

View source

Same-host carrier: frames as Arrow IPC in shared memory (FEAT-747 M8).

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 Inbound

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

Alias RoostMessage

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

Class SharedMemoryCarrier

Moves DataFrame content through shared memory; signalling rides the signal carrier.

Parameter Type Default Description
signal Carrier
max_bytes Optional[int] None

Method SharedMemoryCarrier.send

Encode frame content (strict Arrow), replace it by ShmPayloadRef, deliver over signal.

send(msg: RoostMessage) -> None

Parameter Type Default Description
msg RoostMessage

Method SharedMemoryCarrier.subscribe

Wrap inbound: decode a ShmPayloadRef, call inbound, then ACK.

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

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

Returns: str

Method SharedMemoryCarrier.ack

Receiver ACK ⇒ sender unlinks; idempotent.

ack(ref: ShmPayloadRef) -> None

Parameter Type Default Description
ref ShmPayloadRef

Method SharedMemoryCarrier.unsubscribe

Remove a subscription on the signal carrier.

unsubscribe(subscription_id: str) -> bool

Parameter Type Default Description
subscription_id str

Returns: bool

Method SharedMemoryCarrier.close

Unlink every segment still owned, then close the signal carrier.

close() -> None

Class ShmPayloadRef

Reference to a frame living in a shared-memory segment.

Fields:

Field Type Default Description
shm_name str
size int
schema_digest str
rows int

Alias decode_dataframe_from_shm

Re-exported from parrot.tools.repl_worker.transport.decode_dataframe_from_shm.

Alias encode_dataframe

Re-exported from parrot.tools.repl_worker.transport.encode_dataframe.

Alias unlink_shm

Re-exported from parrot.tools.repl_worker.transport.unlink_shm.

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