Codex.RunConfig (Codex SDK v0.7.2)

Copy Markdown View Source

Per-run configuration applied to agent execution.

Summary

Functions

Builds a validated %Codex.RunConfig{} struct.

Types

t()

@type t() :: %Codex.RunConfig{
  auto_previous_response_id: boolean(),
  call_model_input_filter: function() | nil,
  conversation_id: String.t() | nil,
  file_search: Codex.FileSearch.t() | nil,
  group: term(),
  hooks: term(),
  input_guardrails: list(),
  max_turns: pos_integer(),
  model: String.t() | nil,
  model_settings: map() | struct() | nil,
  nest_handoff_history: boolean(),
  output_guardrails: list(),
  previous_response_id: String.t() | nil,
  session: term() | nil,
  session_input_callback: function() | nil,
  trace_id: term(),
  trace_include_sensitive_data: term(),
  tracing_disabled: term(),
  workflow: term()
}

Functions

new(config)

@spec new(map() | keyword() | t()) :: {:ok, t()} | {:error, term()}

Builds a validated %Codex.RunConfig{} struct.