Skip to main content

Unit Testing Agents

Test agent logic in isolation by calling the logic with mock trigger events. Use makeBound to create full event envelopes:

Integration Testing the Network

Run the network inside an Effect scope and publish events programmatically:

Replay

For replay-based testing, store event sequences (e.g. from a run artifact) and replay them through the network. Use makeBound or decode to reconstruct envelopes from stored JSON.

Evals

Use @m4trix/evals for repeatable evaluation runs. See Eval Harness and the evals package docs.