View Source Agens.Supervisor (agens v0.1.3)

The Supervisor module for the Agens application.

Agens.Supervisor starts a DynamicSupervisor for managing Agens.Agent, Agens.Serving, and Agens.Job processes.

In order to use Agens simply add Agens.Supervisor to your application supervision tree:

Supervisor.start_link(
  [
    {Agens.Supervisor, name: Agens.Supervisor}
  ],
  strategy: :one_for_one
)

Options

  • :prefixes (Agens.Prefixes) - The default prompt prefixes can be overriden with this option. Each Agens.Serving.Config can also override the defaults on a per-serving basis.

See the README.md for more info.