Codex (Codex SDK v0.3.0)
View SourcePublic entry point for the Codex SDK.
Provides helpers to start new threads or resume existing ones.
Summary
Functions
Resumes an existing thread with the given thread_id.
Starts a new Codex thread returning a %Codex.Thread{} struct.
Types
@type start_opts() :: map() | keyword() | Codex.Options.t()
@type thread_opts() :: map() | keyword() | Codex.Thread.Options.t()
Functions
@spec resume_thread(String.t(), start_opts(), thread_opts()) :: {:ok, Codex.Thread.t()} | {:error, term()}
Resumes an existing thread with the given thread_id.
@spec start_thread(start_opts(), thread_opts()) :: {:ok, Codex.Thread.t()} | {:error, term()}
Starts a new Codex thread returning a %Codex.Thread{} struct.