Vibe.UI.PromptRunner (vibe v0.2.1)

Copy Markdown View Source

Task-based prompt execution for interactive sessions.

Summary

Types

ask_fun()

@type ask_fun() :: (String.t(), keyword() -> {:ok, term()} | {:error, term()})

Functions

cancel(active_agent, prompt_task)

@spec cancel(pid() | nil, pid() | nil) :: :ok

default_ask(text, opts)

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

safe_ask(ask_fun, text, opts)

@spec safe_ask(ask_fun(), String.t(), keyword()) :: {:ok, term()} | {:error, term()}

start(ask_fun, text, ask_opts, parent, ref)

@spec start(ask_fun(), String.t(), keyword(), pid(), reference()) :: {:ok, pid()}