Skip to main content

Module events

Module events 

Source
Expand description

Event recording utilities for the agent runner.

Structs§

ActiveCommandHandle
ActiveToolHandle
ExecEventRecorder
Helper responsible for recording execution events and relaying them to optional sinks.
ExecutionContextTracker
SessionStoreSink
Authoritative event sink for one canonical session store.
SharedLifecycleEmitter
Shared lifecycle state for assistant text, reasoning, and model-emitted tool calls.
ToolOutputPayload
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 ToolOutputPayload from 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§

DecisionEvidenceValidator
Ordered validation of canonical evidence identities within the current task.
EventSink
Callback type alias for streaming structured events.