Skip to main content

Module embed

Module embed 

Source
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§

AgentWorld
A running embedded world: agents spawn into it, events stream out of it.
AgentWorldBuilder
Builds an AgentWorld from plain values - no config file, no daemon.
BasicToolService
The default tool service for embedded worlds. See the module docs for what it does and does not provide.
EventStream
An async stream of WorldEvents from an embedded world.
RunId
An opaque run identifier, minted by AgentWorld::spawn.
SpawnSpec
One spawn request. Build with SpawnSpec::new, then set the optional fields directly; the struct is non-exhaustive so new options stay additive.

Enums§

BlueprintSource
Where a spawn’s blueprint comes from.
EmbedError
Why an AgentWorld could not be built or a request to it could not be served.