Vibe.Subagents.Manager (vibe v0.2.1)

Copy Markdown View Source

Subagent lifecycle: start, cancel, list, and result retrieval.

Summary

Functions

cancel(id)

@spec cancel(String.t()) :: :ok | {:error, :not_found}

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

jobs()

@spec jobs() :: [Vibe.Subagents.JobInfo.t()]

result(id)

@spec result(String.t()) :: {:ok, term()} | {:error, term()}

start_job(task, opts \\ [])

@spec start_job(
  String.t(),
  keyword()
) :: {:ok, Vibe.Subagents.JobInfo.t()} | {:error, term()}

start_link(opts \\ [])

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

status(id)

@spec status(String.t()) :: {:ok, Vibe.Subagents.JobInfo.t()} | {:error, :not_found}