Skip to main content

Module runtime

Module runtime 

Source

Modules§

budget
Task 23 — per-turn budgets (spec §8.1).
capture_worker
Nonblocking, bounded dispatch of completed memory captures.
chat_capture
Typed, terminal-only continuous-memory chat capture (task C1).
compaction
Conversation compaction — turn a long message history into a structured summary.
context
Task 29 — centralized request-aware context budgeting (spec §9.1).
google_gemini
Google Gemini (Code Assist) runtime — broker-proxied only.
google_vertex
Provider-local Google Vertex public catalog and generateContent adapter.
memory_context
Typed continuous-memory context domain model (task A1).
memory_history
Existing-history disclosure preview and consent gate (task D1).
openai
OpenAI-compatible provider engine.
relay
CP-11 fix-2 (A): bounded caller-facing stream boundary.
subagent
telemetry
Structured per-request API telemetry.
trace
Versioned, provider-neutral request trace envelope (spec §6.1, §6.4).

Structs§

Runtime

Enums§

AgentEvent
BeforeToolCallDecision
Result of resolving before_tool_call extension policy.
LlmEvent
SessionEvent
StreamEvent
Top-level stream event — grouped into concern-specific sub-enums.

Functions§

emit_after_tool_call
Emit an after_tool_call event and return the tool output to record in history — either the original output, or a Replace { output } substituted by an extension transform hook (compression, redaction, summarization). The runtime tool name is included when it differs from the API-safe name.
emit_before_tool_call
Emit a before_tool_call event and include the runtime tool name when it differs from the API-safe name.
resolve_before_tool_call_decision
Resolve before_tool_call policy into executable input or a block reason.
resolve_before_tool_call_result
Resolve a before_tool_call result that may request user confirmation.