LemonRouter. RunProcess
(lemon_router v0.1.0)
View Source
Process that owns a single run lifecycle.
RunProcess expects a router-built %LemonCore.ExecutionCommand{} at init
time. Router-owned conversation identity must already be resolved before this
process submits work into the configured runtime.
Each RunProcess:
- Owns a run_id
- Manages abort state
- Subscribes to Bus for run events
- Maintains metadata snapshot
- Emits router-level events
Heavy logic is delegated to focused submodules:
RunProcess.Watchdog-- idle-run watchdog timerRunProcess.CompactionTrigger-- context-overflow & compaction markersRunProcess.RetryHandler-- zero-answer auto-retryLemonRouter.SurfaceManager-- semantic answer/status coordination and fanoutRunProcess.ArtifactTracker-- generated file tracking and answer metadata enrichmentLemonRouter.MediaJobRecorder-- generated media delivery metadata recording
Summary
Functions
Abort this run process.
Returns a specification to start this module under a supervisor.
Keep an active run alive (or cancel it) when watchdog keepalive UI is used.
Functions
Abort this run process.
Returns a specification to start this module under a supervisor.
See Supervisor.
Keep an active run alive (or cancel it) when watchdog keepalive UI is used.