Prompt Runner bridge onto the current ASM session runtime.
This module starts provider sessions through ASM, projects wrapped
CliSubprocessCore events into Prompt Runner's canonical event vocabulary,
and preserves provider-native recovery handles so the runner can attempt an
exact session resume instead of replaying the full prompt from scratch.
Summary
Functions
Resumes an existing provider-native conversation with a continuation prompt.
Starts a streaming prompt session and returns a lazy event stream.
Types
@type close_fun() :: (-> :ok)
@type llm_config() :: map()
@type provider() :: PromptRunner.LLM.provider()
@type stream() :: Enumerable.t()
@type stream_event() :: map()
Functions
@spec resume_stream(llm_config(), map(), String.t()) :: {:ok, stream(), close_fun(), map()} | {:error, term()}
Resumes an existing provider-native conversation with a continuation prompt.
@spec start_stream(llm_config(), String.t()) :: {:ok, stream(), close_fun(), map()} | {:error, term()}
Starts a streaming prompt session and returns a lazy event stream.