Skip to main content

Module runtime

Module runtime 

Source

Structs§

AssembledTurn
Canonical high-level turn result returned to hosts.
AssistantOutput
Canonical assistant output payload.
BackgroundRuntimeHost
Host shape for runtimes that support background plugin work.
BackgroundTaskAttempt
BackgroundTaskFilter
BackgroundTaskOutcome
BackgroundTaskRecord
Serializable host-owned background task record.
BackgroundTaskRegistration
Metadata required to register a local background task.
BackgroundTaskScope
CodeOutputRecord
RLM code execution output observed during a turn.
EmbeddedRuntimeBuilder
EmbeddedRuntimeHost
Base host shape for embedded runtimes.
ExecutionSummary
High-level execution summary shared across execution modes.
FollowedTurn
Result of driving one logical host turn through any foreground handoffs.
LashRuntime
Generic runtime for CLI or programmatic embedding.
LocalBackgroundTaskHost
Tokio-backed background task host shared across runtime sessions.
ModeSessionExtensionHandle
ModeTurnExtensionHandle
NoopEventSink
No-op sink useful for callers that only care about final state.
NoopTurnActivitySink
ParkedSession
Lightweight handle returned by LashRuntime::park. Holds no graph nodes, no plugin session, no HTTP client — just enough to LashRuntime::resume later. Cheap to cache per-session on a webserver; bounded memory cost regardless of session history size.
PersistedSessionState
Serializable persistence snapshot used by stores, resume, and child session snapshots.
PromptUsage
Exact prompt-usage snapshot from the most recent completed LLM call.
RuntimeCoreConfig
Required host configuration for all runtimes.
RuntimeEnvironment
Shared runtime infrastructure an embedder builds once and reuses across every LashRuntime it constructs.
RuntimeEnvironmentBuilder
Fluent builder for RuntimeEnvironment.
RuntimeError
Runtime error for unexpected failures.
RuntimeHandle
RuntimeObservation
SessionStateEnvelope
Serializable session read-model exported to hosts and plugins.
SessionStoreCreateRequest
SessionUsageReport
TerminationPolicy
Termination policy knobs.
TokenLedgerEntry
A single row in the token cost ledger. One per unique (source, model) pair — accumulated, not per-call.
TurnActivity
App-facing semantic activity emitted during a turn.
TurnActivityId
Stable identifier for a semantic turn activity.
TurnContext
TurnInput
Host-provided per-turn input.
TurnIssue
Structured issue surfaced during turn execution.
UsageReportRow
UsageTotals

Enums§

BackgroundCancelPolicy
BackgroundClosePolicy
BackgroundTaskEvent
BackgroundTaskKind
Category of a registered background task.
BackgroundTaskState
Lifecycle state of a registered background task.
InputItem
Host-provided per-turn input.
OutputState
Quality and usability of assembled terminal output.
Residency
Where session nodes live at runtime.
TurnEvent
App-facing semantic event payload for a turn activity.

Traits§

BackgroundTaskHost
Host-owned background task lifecycle policy.
EventSink
Host event sink for low-level streaming runtime events. SessionEvent is intentionally mode-specific and should be treated as preview/progress data.
ModeSessionExtension
ModeTurnExtension
SessionStoreFactory
TurnActivitySink

Functions§

diff_token_ledger
diff_usage_reports

Type Aliases§

BackgroundTaskId
LocalBackgroundTaskCancel
Local-only cancellation hook for in-process tasks such as subagent trees.