Skip to content

API Reference parrot.interagent.messages

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

parrot.interagent.messages

View source

Pydantic mirrors of the Squawk message set (squawk.capnp lives in the satellite; these are transport-free).

Alias ArtifactHandle

Re-exported from parrot.interagent.handles.ArtifactHandle.

Class Budget

Budget constraints for a capability call.

Fields:

Field Type Default Description
tokens int | None None
ms int | None None
rows int | None None

Alias CallCost

Re-exported from parrot.interagent.ledger.CallCost.

Class CallMessage

One capability call. Structurally satisfies FEAT-747's EnvelopeLike.

Fields:

Field Type Default Description
envelope_id str
cap_id str
contract_hash str
args bytes
out_hints dict[str, Any]
budget Budget Budget()
trace_id str
correlation_id str
idempotency_key str
reply_to str | None None
caller CallerIdentity | None None

Attributes:

Attribute Type Description
trace TraceContext TraceContext for the hop; span_id is fresh per access.
budget_ms int | None Budget in milliseconds.
token_budget int | None Token budget.

Alias CallerIdentity

Re-exported from parrot.interagent.ledger.CallerIdentity.

Class CancelMessage

Cancellation request for an in-flight operation.

Fields:

Field Type Default Description
op_id str
trace_id str

Alias CapabilityCategory

Re-exported from parrot.interagent.contract.CapabilityCategory.

Alias ContractDelta

Re-exported from parrot.interagent.contract.ContractDelta.

Alias HandleProvenance

Re-exported from parrot.interagent.provenance.HandleProvenance.

Class HelloMessage

Initial handshake message from a client to a server.

Fields:

Field Type Default Description
protocol_major int PROTOCOL_MAJOR
agent_id str
token bytes | None None
known_hashes dict[str, str]
known_digests tuple[str, ...] ()
trace_id str

Attribute PROTOCOL_MAJOR

Class ProgressMessage

Progress update for a long-running operation.

Fields:

Field Type Default Description
op_id str
phase str
frame bytes | None None
frame_index int
is_last bool False

Class ResultMessage

Result of a capability call.

Fields:

Field Type Default Description
status Literal['OK'] | SquawkErrorCode
inline bytes | None None
handle ArtifactHandle | None None
transfer Literal['frames', 'skipped', 'none'] 'none'
provenance HandleProvenance | None None
cost CallCost
trace_id str
correlation_id str
detail str | None None
current_category CapabilityCategory | None None

Alias SquawkErrorCode

Re-exported from parrot.interagent.errors.SquawkErrorCode.

Alias TraceContext

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

Class WelcomeMessage

Server response to a successful handshake.

Fields:

Field Type Default Description
protocol_major int PROTOCOL_MAJOR
session_id str
delta ContractDelta
max_frame_bytes int

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