Codex.AgentRunner (Codex SDK v0.7.2)

Copy Markdown View Source

Multi-turn runner that orchestrates agent execution over Codex threads.

Summary

Functions

Resolves and filters handoffs configured on the agent, returning only enabled entries.

Functions

get_handoffs(agent, context \\ %{})

@spec get_handoffs(Codex.Agent.t(), map()) :: {:ok, [Codex.Handoff.t()]}

Resolves and filters handoffs configured on the agent, returning only enabled entries.

run(thread, input, opts \\ %{})

@spec run(Codex.Thread.t(), String.t() | [map()], map() | keyword()) ::
  {:ok, Codex.Turn.Result.t()} | {:error, term()}

run_streamed(thread, input, opts \\ %{})

@spec run_streamed(Codex.Thread.t(), String.t() | [map()], map() | keyword()) ::
  {:ok, Codex.RunResultStreaming.t()} | {:error, term()}