Skip to main content

Module messages

Module messages 

Source
Expand description

Cross-thread message payloads. Message types for multi-agent coordination.

Defines the per-agent message formats exchanged between the components of a population-based / threaded multi-agent training setup (simulator threads producing experience, learner threads consuming it). After the Burn migration the message payloads are all plain Vec<f32> / Vec<i64> host data — no tensor types cross the channel boundary, which keeps the producer and consumer free to choose different Burn backends if they want to.

§Scope

Only the data carriers and control envelope live here. The threaded learner / simulator implementations that consume these messages live one layer up (and are intentionally minimal in this first Burn-native port — see crate::multi_agent for the module-level scope).

Structs§

Experience
Experience tuple sent from a simulator to a learner.
PolicyUpdate
Policy update message sent from a learner back to a simulator.
TrainingStats
Training statistics from a policy update.

Enums§

ControlMessage
Control message for coordinating training.
PolicyBroadcast
In-process policy broadcast from a learner to its actors.

Type Aliases§

AgentId
Unique identifier for an agent across a multi-agent training run.