Expand description
Event recording utilities for the agent runner.
Structs§
- Active
Command Handle - Active
Tool Handle - Exec
Event Recorder - Helper responsible for recording execution events and relaying them to optional sinks.
- Execution
Context Tracker - Session
Store Sink - Authoritative event sink for one canonical session store.
- Shared
Lifecycle Emitter - Shared lifecycle state for assistant text, reasoning, and model-emitted tool calls.
- Tool
Output Payload - Aggregated output from a tool execution, containing either inline text or a spool file reference.
Functions§
- combine_
event_ sinks - Combine two optional event sinks into one that fans out to both.
- decision_
completed_ event - Convert a successful decision call into a canonical public decision item.
- error_
item_ completed_ event - file_
change_ completed_ event - Attribute only a successful file tool’s recorded result, never current Git state.
- session_
store_ sink - Build an event sink that persists every recorded event to the unified
per-session store (
vtcode_memory), making it the canonical source of truth for session state/history. - tool_
invocation_ completed_ event - tool_
output_ completed_ event - tool_
output_ item_ id - tool_
output_ payload_ from_ value - Extract a
ToolOutputPayloadfrom a tool result JSON value, preserving bounded metadata alongside a spool reference and falling back to inline text aggregation otherwise. - tool_
output_ started_ event - tool_
output_ updated_ event - tool_
started_ event - validate_
decision_ input - Validate public rationale bounds at the tool boundary, independent of schemas.
Type Aliases§
- Decision
Evidence Validator - Ordered validation of canonical evidence identities within the current task.
- Event
Sink - Callback type alias for streaming structured events.