Skip to main content

Module runtime

Module runtime 

Source

Structs§

AgentFrameRun
Result of driving one logical host turn through any AgentFrame switches.
AssembledTurn
Canonical high-level turn result returned to hosts.
AssistantOutput
Canonical assistant output payload.
CodeOutputRecord
RLM code execution output observed during a turn.
DefaultProcessCancelAbility
DirectCompletionClient
DurableProcessWorker
Reconstructable background-process worker.
DurableProcessWorkerConfig
Deployment-local configuration for rebuilding durable process executions.
EmbeddedRuntimeBuilder
EmbeddedRuntimeHost
Base host shape for embedded runtimes.
ExecutionSummary
High-level execution summary for a completed turn.
InMemorySessionStore
InMemorySessionStoreFactory
Session-id-keyed factory: the same in-memory store is returned for a given session across opens (so a worker rebuild sees the session’s state), and a fresh store is created on first use. Inline durability tier.
InlineEffectHost
In-process deployment effect host.
InlineProcessRunHandle
Inline run handle: drives the worker’s own lease-protected sweep in-process.
InlineRuntimeEffectController
Default in-process effect controller.
LashRuntime
Generic runtime for CLI or programmatic embedding.
LiveTurnInputs
Per-turn, in-process side channel of typed plugin inputs.
LlmAttachmentSpec
Serializable attachment data for runtime effect envelopes.
LlmRequestSpec
Serializable LLM request data. Live stream and provider-trace callbacks are attached by the local executor, and attachment bytes are resolved locally from refs rather than persisted in the effect envelope.
NoopEventSink
No-op sink useful for callers that only care about final state.
NoopTurnActivitySink
ObservedProcess
ObservedProcessEvent
ObservedWorkItem
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.
PreparedProcessEventAppend
ProcessCancelAllRequest
ProcessCancelRequest
ProcessCancelSummary
ProcessDefinitionSelector
ProcessDefinitionSummary
ProcessEvent
ProcessEventAppendRequest
ProcessEventAppendResult
ProcessEventSemantics
ProcessEventSemanticsSpec
ProcessEventType
ProcessExecutionContext
Execution-local context for a process start effect. This is not part of the durable process row.
ProcessExternalRef
Durable backend reference for background work accepted outside the local process.
ProcessHandleDescriptor
ProcessHandleGrant
ProcessHandleSummary
ProcessLease
Durable lease over a non-terminal background process.
ProcessLeaseCompletion
ProcessListFilter
ProcessOpScope
ProcessProvenance
ProcessRecord
Durable process row. Session-visible addressability lives in ProcessHandleGrant, not in the process record.
ProcessRegistration
Serializable process spec used to start or recover a runtime process.
ProcessRuntimeHost
Host shape for runtimes that support background plugin work.
ProcessScope
ProcessScopeId
ProcessSessionDeleteReport
ProcessStartGrant
ProcessStartOptions
ProcessStartRequest
Public host-facing request for starting a visible process handle.
ProcessTerminalSemantics
ProcessTerminalSpec
ProcessWake
ProcessWakeDelivery
ProcessWakeSpec
ProcessWorkDriver
Registry and wake handle for a process work runner owned outside LashCore.
ProcessWorkObserver
ProcessWorkPoke
Cloneable handle that wakes a ProcessWorkRunner loop.
ProcessWorkRunner
Drives the registry’s non-terminal rows (the durable work queue) to terminal on poke, on a poll tick, and once at startup.
ProcessWorkSnapshot
PromptUsage
Exact prompt-usage snapshot from the most recent completed LLM call.
ProtocolSessionExtensionHandle
ProtocolTurnExtensionHandle
QueuedCheckpointWork
QueuedTurnWork
QueuedWorkBatch
QueuedWorkBatchDraft
QueuedWorkClaim
QueuedWorkCompletion
QueuedWorkItem
QueuedWorkPoke
QueuedWorkRunRequest
QueuedWorkRunner
RuntimeEffectControllerError
RuntimeEffectEnvelope
Fully serializable envelope emitted at Lash’s nondeterministic boundary.
RuntimeEffectLocalExecutor
Scoped local executor provided to a RuntimeEffectController for one effect.
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
RuntimeHostConfig
Required host configuration for all runtimes.
RuntimeInvocation
Canonical lineage for a runtime-side invocation.
RuntimeObservation
RuntimeReplay
RuntimeScope
RuntimeSessionState
The runtime’s view of a session: the persistable snapshot fields plus scratch fields the runtime tracks but never persists (head-revision CAS guard, pending dirty-write buffers, replace-graph flag). Public serialization goes through RuntimeSessionState::to_snapshot, which drops runtime-only fields by construction.
ScopedEffectController
Scoped low-level controller plus the semantic effect scope it is serving.
SessionCommandReceipt
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.
TurnOptions
Optional sinks and scoped effect controller passed to one of LashRuntime’s turn-driving entry points (stream_turn, stream_turn_with_agent_frames).
UnavailableProcessService
UsageReportRow
UsageTotals

Enums§

CausalRef
Stable semantic reference to the runtime fact that caused another fact.
DeliveryPolicy
DurableStoreFacet
Durable store facet that a durable execution path requires but the host wired as ephemeral.
EffectScope
Stable semantic identity for one effectful runtime operation.
InputItem
Host-provided per-turn input.
MergeKey
OutputState
Quality and usability of assembled terminal output.
ProcessAwaitOutput
ProcessCancelSource
ProcessCommand
Serializable operation against the process control plane.
ProcessEffectOutcome
Serializable result of a process operation.
ProcessInput
Durable executable input for a process.
ProcessLifecycleStatus
ProcessListMode
ProcessStatus
ProcessStatusFilter
ProcessTerminalState
ProcessValueSelector
ProcessWakeDedupeKey
QueuedWorkClaimBoundary
QueuedWorkPayload
QueuedWorkRunOutcome
Residency
Where session nodes live at runtime.
RuntimeEffectCommand
Serializable command emitted at Lash’s nondeterministic runtime boundary.
RuntimeEffectKind
Durable category for a runtime effect.
RuntimeEffectOutcome
Serializable result of a runtime effect command.
RuntimeErrorCode
Stable runtime error code.
RuntimeSubject
SessionCommand
SlotPolicy
TurnEvent
App-facing semantic event payload for a turn activity.

Constants§

PROCESS_LEASE_SCHEMA_VERSION
Wire-format version stamped on every persisted ProcessLease.
QUEUED_WORK_CLAIM_TTL_MS

Statics§

NOOP_EVENT_SINK
Static no-op event sink for callers that need a &dyn EventSink default.
NOOP_TURN_ACTIVITY_SINK
Static no-op turn-activity sink for callers that need a &dyn TurnActivitySink default.

Traits§

EffectHost
Deployment-level factory for scoped effect controllers.
EventSink
Host event sink for low-level streaming runtime events. SessionEvent is protocol-specific preview/progress data.
ProcessCancelAbility
ProcessRegistry
Durability-neutral process registry.
ProcessRunHandle
One lease-protected drive of the registry’s pending (non-terminal) processes.
ProcessService
ProtocolSessionExtension
ProtocolTurnExtension
QueuedWorkRunHandle
RuntimeEffectController
Boundary for nondeterministic runtime work.
SessionStoreFactory
TurnActivitySink

Functions§

current_epoch_ms
diff_token_ledger
diff_usage_reports
ensure_durable_effect_input
epoch_ms_from_system_time
lashlang_process_event_types
materialize_process_event_semantics
prepare_process_event_append
prepare_process_registration
process_event_invocation
process_event_payload_hash
process_wake_batch_draft
process_wake_delivery
process_wake_input_from_event_payload
Extracts the model-facing wake input from a process wake event payload.
process_wake_turn_cause
process_wake_turn_text
Renders a durable process wake as model-visible chronological context.
require_event_replay
system_time_from_epoch_ms

Type Aliases§

ProcessHandleGrantEntry
ProcessId