Expand description
Embedding the runtime as a library: the batteries-included assembly a
Rust application uses to run agents in-process, without the lev CLI,
the daemon, or a config file.
The daemon remains the primary interface for the CLI; this module is the
same machinery (PipelineWorld +
WorldHost) assembled from plain values.
Structs§
- Agent
World - A running embedded world: agents spawn into it, events stream out of it.
- Agent
World Builder - Builds an
AgentWorldfrom plain values - no config file, no daemon. - Basic
Tool Service - The default tool service for embedded worlds. See the module docs for what it does and does not provide.
- Event
Stream - An async stream of
WorldEvents from an embedded world. - RunId
- An opaque run identifier, minted by
AgentWorld::spawn. - Spawn
Spec - One spawn request. Build with
SpawnSpec::new, then set the optional fields directly; the struct is non-exhaustive so new options stay additive.
Enums§
- Blueprint
Source - Where a spawn’s blueprint comes from.
- Embed
Error - Why an
AgentWorldcould not be built or a request to it could not be served.