Skip to main content
Events are typed messages that flow through the system. Each event has a name, a payload schema (validated at runtime via Effect Schema), and automatically-attached metadata (run ID, timestamps, correlation IDs).

Defining Events

Use AgentNetworkEvent.of() to define an event with a name and a payload schema:
The resulting event definition is a constant you reference throughout your code — in agent factories, network setup, and expose configuration.

Event Envelope

Every event flowing through the system is wrapped in an envelope:
The meta fields are automatically managed by the runtime. You only need to provide the name and payload when emitting events from agents.

API Summary

See AgentNetworkEvent API for full details.