AgentSessionManager.Runtime.SessionSupervisor
(AgentSessionManager v0.8.0)
Copy Markdown
View Source
Supervisor for the session runtime.
Starts:
- a
Registryfor per-session process names - a
DynamicSupervisorforSessionServerprocesses
This module is optional and intended for applications that want a ready-made runtime process tree.
Summary
Functions
Returns a specification to start this module under a supervisor.
Types
@type start_session_opts() :: [ session_id: String.t(), session_opts: map(), store: any(), adapter: any(), max_concurrent_runs: pos_integer(), max_queued_runs: pos_integer(), limiter: GenServer.server(), default_execute_opts: keyword() ]
Functions
Returns a specification to start this module under a supervisor.
See Supervisor.
@spec start_link(keyword()) :: Supervisor.on_start()
@spec start_session(Supervisor.supervisor(), start_session_opts()) :: {:ok, pid()} | {:error, AgentSessionManager.Core.Error.t()}
@spec whereis(Supervisor.supervisor(), String.t()) :: {:ok, pid()} | :error