Skip to main content

Crate rig_ecs

Crate rig_ecs 

Source
Expand description

Rig’s effect bus and agent runtime as entities and systems in a Bevy world.

RigPlugin installs request assembly, dispatch, streaming, tool execution, memory, and retrieval. Hosts steer runs through components and save reflected state with checkpoint. Concrete recording and replay adapters live in rig_cassette::ecs; the optional assets feature loads prompts and tools.

This crate is experimental: its API may change in minor releases. The runtime behaviour its tests pin is stated in CONTRACT.md.

let mut app = bevy_app::App::new();
app.add_plugins(rig_ecs::RigPlugin::default());
app.update();

Modules§

agent
Components and relationships describing agents, conversations, runs, and turns.
bus
An effect bus whose pending work, handlers, and outcomes are world entities.
checkpoint
Save and restore reflected execution graphs with host-supplied handlers.
policy
Pure request assembly, output selection, and tool-result shaping over plain data.
prelude
Common schedule sets and components for application systems.
reflect
Registration of checkpointed components and opaque rig-core reflection wrappers.
systems
Agent run lifecycle and request-processing systems in RigSchedule.

Structs§

RigPlugin
Installs bus and agent systems in bus::RigSchedule after Update, with task-driven wakeups and checkpoint type registration. Adds time and diagnostics plugins if absent.