View Source Agens.Supervisor (agens v0.1.2)
The Supervisor module for the Agens application.
Agens.Supervisor
starts a DynamicSupervisor
for managing Agens.Agent
, Agens.Serving
, and Agens.Job
processes. It also starts a Registry
for keeping track of these 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
:registry
(atom
) - The default registry can be overriden with this option. Default isAgens.Registry
.:prompts
(map
) - The default prompt prefixes can be overriden with this option. EachAgens.Serving.Config
can also override the defaults on a per-serving basis.
See the README.md for more info.
Summary
Functions
Returns a specification to start this module under a supervisor.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.