kcode-codex-runtime-v2 0.1.0

Native dynamic-tool turns through the Codex app-server protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! 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.

#![deny(missing_docs)]
#![forbid(unsafe_code)]

mod error;
mod model;
mod runtime;

pub use error::{Error, ErrorKind, Result};
pub use model::{
    AgentEvent, AgentRequest, CompletedTurn, DynamicTool, DynamicToolCall, ReasoningEffort,
    TokenUsage, ToolResult,
};
pub use runtime::{AgentTurn, Codex, CodexConfig, DEFAULT_CODEX_EXECUTABLE};