Skip to main content

Module internal

Module internal 

Source
Expand description

Shared provider infrastructure: the wire-adapter contract, its single-policy-site driver, and the decode-then-validate classify layer.

adapter, wire, tool_call_bridge, and chunk_lifecycle are public so out-of-tree providers implement adapter::WireAdapter and inherit the shared driver, frame-triage policy, index→identity tool-call bridging, and the boundary-less reasoning lifecycle derivation instead of hand-rolling per-provider assemblers; the remaining helpers are crate-private.

Modules§

adapter
The wire-adapter contract and its single-policy-site driver.
chunk_lifecycle
Shared lifecycle derivation for boundary-less constant-key wires.
tool_call_bridge
Index → grammar-identity bridging for streamed tool calls.
wire
Decode-then-validate classification for JSON stream wire frames.

Functions§

resolve_empty_tool_result_names
Fill empty ToolResult::names from the calls they answer, for wires that key the replay on the tool name (Gemini functionResponse.name, Ollama tool messages, Vertex AI, gemini-grpc, Interactions).