Expand description
Core agent execution spawning logic.
Provides spawn_session_execution which handles the full lifecycle of a
background agent run: spawn task → execute → finalize runner → persist session.
Structs§
- Session
Execution Args - Arguments for spawning a background agent execution.
- Session
Execution Outcome - Outcome of an agent execution, handed to an optional
SessionCompletionHook.
Functions§
- log_
base_ system_ prompt_ snapshot - Log a snapshot of the base system prompt for debugging.
- read_
cached_ session - Read a session out of the in-memory cache, cloning it out from under the
brief sync read-lock. Returns
Noneon a cache miss. - spawn_
session_ execution - Spawn a background agent execution task.
- terminal_
error_ event_ for_ result - Map an execution result to a terminal error event.
Type Aliases§
- Session
Cache - Shared, per-session-locked session cache.
- Session
Completion Hook - Optional post-execution hook for
spawn_session_execution.