Skip to main content

Crate kcode_codex_runtime_v2

Crate kcode_codex_runtime_v2 

Source
Expand description

Native Codex app-server turns with caller-implemented dynamic tools.

Codex starts one standard Codex turn. AgentTurn yields exact client-to-Codex JSONL records, dynamic tool calls, and the completed turn.

Structs§

AgentRequest
One standard Codex turn request.
AgentTurn
Interactive handle for a running Codex turn.
Codex
Cloneable Codex app-server runtime.
CodexConfig
Runtime configuration applied to every Codex app-server process.
CompletedTurn
Successful terminal state of one Codex turn.
DynamicTool
A dynamic function exposed to Codex for a fresh thread.
DynamicToolCall
A dynamic function call requested by Codex.
Error
One safe runtime error.
TokenUsage
Normalized cumulative and latest-turn token accounting.
ToolResult
Caller-provided result for one dynamic function call.

Enums§

AgentEvent
Event yielded while a Codex turn is running.
ErrorKind
Stable classification for a runtime failure.
ReasoningEffort
Model reasoning effort accepted by Codex.

Constants§

DEFAULT_CODEX_EXECUTABLE
Default sandboxed Codex launcher.

Type Aliases§

Result
Result returned by this crate.