ObanCodex.Query (oban_codex v0.1.0)

Copy Markdown View Source

Translate validated ObanCodex options into fresh or resumed Codex commands.

Most callers use ObanCodex.run/2. This module is public for applications that want the same JSONL command adapter without outcome classification.

Summary

Functions

Run a fresh turn, or resume when :session_id is present.

Functions

run(prompt, opts)

@spec run(
  String.t(),
  keyword()
) :: {:ok, CodexWrapper.Result.t()} | {:error, ObanCodex.Error.t()}

Run a fresh turn, or resume when :session_id is present.