kcode-codex-runtime-v2 0.1.2

Native dynamic-tool turns through the Codex app-server protocol
Documentation
//! Native Codex app-server turns with caller-implemented dynamic tools.
//!
//! [`Codex::start_turn`] preserves the standard text-and-dynamic-tool flow.
//! [`Codex::start_image_turn`] is a separate fresh, ephemeral, tool-free flow
//! that sends caller-owned image bytes as inline data URLs.
//!
//! [`AgentTurn`] yields exact client-to-Codex JSONL records, dynamic tool
//! calls, and the completed turn. For an image turn, the `turn/start`
//! [`AgentEvent::ProviderInput`] contains the Base64-encoded image bytes and
//! must be handled as media-bearing data.

#![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, ImageInput,
    ImageMediaType, ImageTurnRequest, ReasoningEffort, TokenUsage, ToolResult,
};
pub use runtime::{AgentTurn, Codex, CodexConfig, DEFAULT_CODEX_EXECUTABLE};