Skip to main content

mimo_api/types/
mod.rs

1//! Data types for the MiMo API.
2
3mod audio;
4mod chat;
5mod message;
6mod response;
7mod tool;
8
9// Re-export commonly used types at the crate root
10pub use audio::{Audio, AudioFormat, DeltaAudio, ResponseAudio, TtsStyle, Voice, styled_text};
11pub use chat::{ChatRequest, Model, ResponseFormat, ResponseFormatType, Stop, Thinking, ThinkingType, ToolChoice};
12pub use message::{ContentPart, ContentType, FunctionCall, Message, MessageContent, Role};
13pub use response::{
14    Annotation, ChatResponse, Choice, CompletionTokensDetails, DeltaFunctionCall, DeltaMessage,
15    DeltaToolCall, FinishReason, PromptTokensDetails, ResponseMessage, StreamChoice, StreamChunk,
16    Usage, WebSearchUsage,
17};
18pub use tool::{ParameterBuilder, Tool, ToolType, UserLocation};
19
20/// Schema helpers for creating tool parameter schemas.
21pub mod schema {
22    pub use crate::types::tool::schema::*;
23}