A2UI.Demo.Agent (A2UI v0.3.0)

Copy Markdown View Source

Demo restaurant booking agent.

A GenServer that sends A2UI protocol messages to connected LiveViews. Manages per-connection state and supports multiple simultaneous connections.

Summary

Functions

Returns a specification to start this module under a supervisor.

Starts the agent as a linked process.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts \\ [])

Starts the agent as a linked process.

Accepts keyword options. :name is passed to GenServer.start_link/3; remaining options are forwarded to the init/1 callback.