PhoenixKitAgent.Turns.Supervisor (PhoenixKitAgent v0.1.0)

Copy Markdown View Source

The processes of the turn loop, started by the host through PhoenixKitAgent.children/0:

  • PhoenixKitAgent.Turns.Registry — a running turn's task under its turn_ref (what "Stop" finds it by);
  • PhoenixKitAgent.Turns.Monitor — starts, watches and ends the turns;
  • PhoenixKitAgent.Turns.TaskSupervisor — the turns' tasks.

:rest_for_one: when the monitor goes down, the running turns go down with it, so no turn ever runs unwatched (past its deadline, or with its locks never released).

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.