Skip to main content

Module wire

Module wire 

Source

Structs§

ErrorBody
ErrorEnvelope
GetRequest
GetResponse
The session header is always present; result carries the mode-specific payload, discriminated by a scope tag (spec.md#protocol). Flattened so a client reads session / scope / payload fields off one object - no session.session nesting.
GetSession
Trimmed session header (spec.md#protocol): adapter-redundant options, parent pointers (served by restore_lineage), and per-message session id dropped to keep pond_get responses lean for agent context windows.
IngestRequest
IngestResponse
pond_ingest response (spec.md#protocol). accepted = inserted + matched, rejected = error; both derived from results. Per-row results[] is the contract clients rely on to reconcile retries (the PK is echoed so the client can match outcomes back to its input even when index is not enough). Each result reports the input event’s index, kind, pk, status, and an error body when status = "error".
IngestResult
One row of pond_ingest per-row output (spec.md#protocol).
MessageView
Per-message view in a pond_get response. parts_summary is always present (possibly empty); parts is populated only in Verbatim mode.
Part
PartSummary
Compact per-part descriptor (spec.md#protocol): enough to tell what a message carries without paying for full content. call_id is populated for tool_call / tool_result only.
ResponsePart
A Part as it rides a pond_get response (spec.md#protocol): the canonical part minus session_id / message_id, which the enclosing session and message already identify. Built from a canonical Part in the handler.
SearchFilters
SearchRequest
SearchResponse
SearchResult
SearchSession
Session

Enums§

ErrorCode
FileData
GetEnvelope
GetResult
Mode-specific pond_get payload, tagged by scope and flattened into GetResponse alongside the shared session header.
IngestEnvelope
IngestStatus
Message
PartKind
ProjectFilter
JSON shape is externally tagged: {"contains": "pond"} or {"regex": "^/Users/.*"}.
Provenance
Whether a Part’s content is conversation or harness-injected scaffolding (spec.md#model-part-provenance). No Default and no #[serde(default)] on the Part.provenance field below: constructing a Part without classifying it MUST be a compile error (spec.md#adapter-provenance-required).
ResponseMode
How much of each message pond_get materializes (spec.md#protocol). Ignored when message_id is set.
Role
SearchEnvelope
SearchModeWire
Wire-level retrieval mode override (spec.md#search). Not normally set on the wire - the server decides hybrid vs FTS-only from embedding availability. The variant exists so operator tooling (pond search --mode, the embeddings-benchmark harness) can force one arm without an env-var backdoor.
SessionFrom
Which end of a session pond_get reads its page from (spec.md#protocol).

Constants§

DEFAULT_NAMESPACE
SUMMARY_PART_TYPES
Canonical part type names that yield a PartSummary - every kind except text and reasoning (see PartSummary::for_kind, the source of truth). The summary read paths filter the parts scan to these so a text/reasoning heavy session never loads parts that would summarize to nothing.

Functions§

default_namespace
error
new_request_id
storage_error
validate_protocol

Type Aliases§

ProviderOptions