Module hayata_sup

Top-level supervisor and agent lifecycle API for Hayata.

Behaviours: supervisor.

Description

Top-level supervisor and agent lifecycle API for Hayata.

Function Index

agents/0
init/1
start_agent/1
start_link/0
stop_agent/1

Function Details

agents/0

agents() -> [{term(), pid() | restarting, supervisor, [module()]}] | {error, not_started}

init/1

init(X1::[]) -> {ok, {supervisor:sup_flags(), [supervisor:child_spec()]}}

start_agent/1

start_agent(Config::map()) -> {ok, pid()} | {error, term()}

start_link/0

start_link() -> supervisor:start_ret()

stop_agent/1

stop_agent(AgentSupPid::pid()) -> ok | {error, term()}


Generated by EDoc