AgentSessionManager.Runtime.SessionSupervisor (AgentSessionManager v0.8.0)

Copy Markdown View Source

Supervisor for the session runtime.

Starts:

This module is optional and intended for applications that want a ready-made runtime process tree.

Summary

Types

start_session_opts()

@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

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

start_link(opts \\ [])

@spec start_link(keyword()) :: Supervisor.on_start()

start_session(supervisor, opts)

@spec start_session(Supervisor.supervisor(), start_session_opts()) ::
  {:ok, pid()} | {:error, AgentSessionManager.Core.Error.t()}

whereis(supervisor, session_id)

@spec whereis(Supervisor.supervisor(), String.t()) :: {:ok, pid()} | :error