Packages

Elixir-native LangChain, LangGraph, and DeepAgents for traceable LLM apps: OTP workflows, tools, memory, human-in-the-loop, streaming, custom clients/adapters, minimal deps, and WeaveScope tracing.

Current section

Files

Jump to
beam_weaver lib beam_weaver runtime agent_supervisor.ex
Raw

lib/beam_weaver/runtime/agent_supervisor.ex

defmodule BeamWeaver.Runtime.AgentSupervisor do
@moduledoc false
use Supervisor
def start_link(opts \\ []) do
Supervisor.start_link(__MODULE__, opts, name: __MODULE__)
end
@impl true
def init(_opts) do
children = [
{Task.Supervisor, name: BeamWeaver.Runtime.TaskSupervisor},
{DynamicSupervisor, name: BeamWeaver.Runtime.Agent.DynamicSupervisor, strategy: :one_for_one}
]
Supervisor.init(children, strategy: :one_for_one)
end
end