Current section

Files

Jump to
agent_session_manager lib asm application.ex
Raw

lib/asm/application.ex

defmodule ASM.Application do
@moduledoc false
use Application
@impl true
def start(_type, _args) do
# Extension supervisors are intentionally started by the host app,
# so core keeps compile-time/runtime isolation from optional domains.
children = [
{Registry, keys: :unique, name: :asm_sessions},
{Task.Supervisor, name: ASM.TaskSupervisor},
{ASM.Remote.BackendSupervisor, []},
{ASM.Session.Supervisor, []},
{ASM.InferenceEndpoint.LeaseStore, []},
{ASM.InferenceEndpoint.RuntimeConfig, []},
{ASM.InferenceEndpoint.Server, []}
]
Supervisor.start_link(children, strategy: :one_for_one, name: ASM.ApplicationSupervisor)
end
end