Skip to main content

codex_convert_proxy/types/
mod.rs

1//! Type definitions for both API formats.
2
3pub mod chat_api;
4pub mod response_api;
5
6// Re-export Chat API types
7pub use chat_api::{
8    ChatChoice, ChatMessage, ChatRequest, ChatResponse, ChatStreamChunk, ChatTool, ChatToolChoice,
9    Content, ContentBlock, FunctionCall, FunctionChoice, FunctionDefinition, MessageRole,
10    ChatMessageAnnotation, CompletionTokensDetails, ImageUrlField, ImageUrlObject, PromptTokensDetails,
11    StreamOptions, ToolCall, ChatDelta, ChatStreamChoice, ChatToolChoiceMode, ChatUsage,
12    FunctionCallDelta, ToolCallDelta,
13};
14
15// Re-export Response API types
16pub use response_api::{
17    Content as ResponseContent, ContentPart, InputItem, InputItemOrString, InputItemType,
18    OutputItemType, ResponseOutputItem, ResponseRequest, Tool, ToolChoice, ToolType, Usage,
19    ResponseContentPart, ResponseObject,
20};