Skip to main content
The AgentNetwork orchestrates agents, channels, and the event plane. Use AgentNetwork.setup() to wire everything together.

Setup

Setup Context

mainChannel(name)

Creates and designates the main channel. Start events are published here when the network is exposed as an API. Every network should have exactly one main channel.

createChannel(name)

Creates an additional named channel. Names must be kebab-case.

proxy

Provides proxy factories:

registerAgent(agent)

Registers an agent and returns a binding builder:
An agent can subscribe to and publish to multiple channels:

spawner

Creates a spawner for dynamically creating agents at runtime (multi-tenant, on-demand):

Running the Network

See IO + Adapters.

Programmatic Run

Accessors

See Also