Skip to main content

Module session

Module session 

Source
Expand description

Session-based Lua execution with pause/resume on alc.llm() calls.

Runtime layer: ties Domain (ExecutionState) and Metrics (ExecutionMetrics) together with channel-based Lua pause/resume machinery.

Structs§

ExecutionResult
Session completion data: terminal state + metrics.
PendingFilter
Per-field filter controlling which LlmQuery attributes are projected into a Snapshot’s pending array.
Session
A Lua execution session with domain state tracking.
SessionRegistry
Manages active sessions.

Enums§

FeedResult
Result of a session interaction (start or feed).
PromptProjection
Prompt projection mode — 3 states rather than a bool so that truncation length can travel inside the filter object.
SessionError

Constants§

DEFAULT_PROMPT_PREVIEW_CHARS
Default preview length (chars) used when PendingFilter::preset_preview() is constructed without an explicit length. Env var ALC_PROMPT_PREVIEW_CHARS (resolved in AppConfig) overrides this.