Skip to main content

Crate lash

Crate lash 

Source
Expand description

App-facing embedding facade for Lash.

lash is intentionally a small layer above the lower-level lash-core runtime crate. Host applications own providers, persistence, app state, HTTP protocols, auth, and frontend streaming; this crate owns only the ergonomic core/session/turn API.

Every public name has exactly one home. The crate root carries the daily core/session/turn path; each domain module (tools, persistence, plugins, observe, triggers, …) carries its own vocabulary. prelude mirrors the crate root exactly.

Re-exports§

pub use crate::admin::AdvancedToolAdmin;
pub use crate::admin::Completions;
pub use crate::admin::CoreTriggerAdmin;
pub use crate::admin::PluginActions;
pub use crate::admin::SessionCommandAdmin;
pub use crate::admin::SessionTriggerAdmin;
pub use crate::admin::ToolAdmin;
pub use crate::turn::QueuedTurnBuilder;
pub use crate::turn::TurnActivityFanout;
pub use crate::turn::TurnBuilder;
pub use crate::turn::TurnOutput;
pub use crate::turn::TurnResult;
pub use crate::turn::TurnStream;
pub use crate::turn::message_role;
pub use crate::turn::message_text;

Modules§

admin
direct
durability
messages
observe
Session observation: cursors, resumable event streams, and live replay recovery for host frontends. Entry point: LashSession::observe / ObservableSession.
persistence
plugins
prelude
The prelude is exactly the crate root: use lash::prelude::*; brings in the daily core/session/turn vocabulary and nothing from the domain modules.
process
prompt
provider
remote
runtime
tools
tracing
triggers
Triggers and subscriptions: declaring event sources, emitting occurrences, and inspecting trigger subscriptions. Entry points: LashCore::triggers and LashSession::triggers.
turn
usage
Token usage tracking surfaces.

Structs§

AwaitEventKey
CancellationToken
Cooperative cancellation handle accepted by TurnBuilder::cancel; re-exported so embedders cancel turns without depending on tokio-util themselves. A token which can be used to signal a cancellation request to one or more tasks.
EnqueueTurnBuilder
ExternalCompletionError
LashCore
LashCoreBuilder
LashSession
ModelLimits
ModelSpec
ObservableSession
PluginStack
SessionBuilder
SessionCommandReceipt
SessionConfigPatch
SessionDeleteReport
SessionSpec
Reusable session configuration overlay.
StandardCore
StandardCoreBuilder
TurnActivity
App-facing semantic activity emitted during a turn.
TurnActivityId
Stable identifier for a semantic turn activity.
TurnInput
Host-provided per-turn input.

Enums§

AwaitEventWaitIdentity
EmbedError
InputItem
Host-provided per-turn input.
Resolution
ResolveOutcome
SessionCommand
TurnEvent
App-facing semantic event payload for a turn activity.

Traits§

PluginBinding
Typed app-facing activation for an ordinary Lash plugin.
PromptLayerSink
Builder-agnostic prompt-layer mutation surface.
TurnActivitySink

Type Aliases§

Result