Skip to content

API Reference parrot.roost.squawk_bridge

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

parrot.roost.squawk_bridge

View source

The ONLY Roost module that names the Squawk satellite (FEAT-747 M11, resolved Q1).

Every satellite import is inside a function body; without the satellite Roost degrades, never fails.

Alias CapabilityMatch

Re-exported from parrot.roost.directory.CapabilityMatch.

Alias EnvelopeCodec

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

Alias JsonEnvelopeCodec

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

Alias LocalEnvelope

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

Alias RoostMessage

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

Attribute SQUAWK_MODULE

Type: Final[str]

Class SquawkCodecAdapter

EnvelopeCodec over the satellite codec and bus payload serializer.

Method SquawkCodecAdapter.encode

Encode a Roost message through the satellite payload and binary codecs.

encode(msg: RoostMessage) -> bytes

Parameter Type Default Description
msg RoostMessage

Returns: bytes

Method SquawkCodecAdapter.decode

Decode satellite bytes into a Roost message.

decode(data: bytes) -> RoostMessage

Parameter Type Default Description
data bytes

Returns: RoostMessage

Class SquawkUnavailable

A satellite feature was required but parrot.squawk is not installed.

Alias ToolManager

Re-exported from parrot.tools.manager.ToolManager.

Alias TraceContext

Re-exported from parrot.core.events.lifecycle.TraceContext.

Function load_codec

Return the satellite codec when available, otherwise the JSON fallback.

load_codec() -> EnvelopeCodec

Returns: EnvelopeCodec

Attribute logger

Function mount_capabilities

Mount each matched satellite capability, degrading to an empty list when unavailable.

mount_capabilities(tool_manager: 'ToolManager', matches: Sequence[CapabilityMatch]) -> list[str]

Parameter Type Default Description
tool_manager 'ToolManager'
matches Sequence[CapabilityMatch]

Returns: list[str]

Function new_envelope

Return a satellite CallMessage when available, otherwise a LocalEnvelope.

new_envelope(*, correlation_id: str, caller: str, trace: Optional[TraceContext] = None, budget_ms: Optional[int] = None, token_budget: Optional[int] = None, idempotency_key: Optional[str] = None) -> Any

Parameter Type Default Description
correlation_id str
caller str
trace Optional[TraceContext] None
budget_ms Optional[int] None
token_budget Optional[int] None
idempotency_key Optional[str] None

Returns: Any

Function resolve_authority

Prefer verified token authority, falling back to the serialized permission context.

resolve_authority(msg: RoostMessage) -> Any

Parameter Type Default Description
msg RoostMessage

Returns: Any

Function squawk_available

Return whether the satellite namespace resolves, cached per process.

squawk_available() -> 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