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::{
12    ChatRequest, Model, ResponseFormat, ResponseFormatType, Stop, Thinking, ThinkingType,
13    ToolChoice,
14};
15pub use message::{ContentPart, ContentType, FunctionCall, Message, MessageContent, Role};
16pub use response::{
17    Annotation, ChatResponse, Choice, CompletionTokensDetails, DeltaFunctionCall, DeltaMessage,
18    DeltaToolCall, FinishReason, PromptTokensDetails, ResponseMessage, StreamChoice, StreamChunk,
19    Usage, WebSearchUsage,
20};
21pub use tool::{ParameterBuilder, Tool, ToolType, UserLocation};
22
23/// Schema helpers for creating tool parameter schemas.
24pub mod schema {
25    pub use crate::types::tool::schema::*;
26}