Expand description
Data types for the MiMo API.
Modules§
- schema
- Schema helpers for creating tool parameter schemas.
Structs§
- Annotation
- Web search annotation.
- Audio
- Audio output configuration for text-to-speech.
- Chat
Request - Chat completion request.
- Chat
Response - Chat completion response.
- Choice
- A completion choice.
- Completion
Tokens Details - Completion tokens details.
- Content
Part - Content part for multi-modal messages.
- Delta
Audio - Delta audio in a streaming response.
- Delta
Function Call - Delta function call in a streaming response.
- Delta
Message - Delta message in a streaming response.
- Delta
Tool Call - Delta tool call in a streaming response.
- Function
Call - A function call.
- Message
- A message in the conversation.
- Parameter
Builder - Builder for creating JSON Schema parameters.
- Prompt
Tokens Details - Prompt tokens details.
- Response
Audio - Response audio data from text-to-speech.
- Response
Format - Response format configuration.
- Response
Message - Response message.
- Stream
Choice - A streaming choice.
- Stream
Chunk - Streaming response chunk.
- Thinking
- Thinking configuration.
- Tool
- A tool that can be called by the model.
- TtsStyle
- Text-to-speech style control.
- Usage
- Token usage information.
- User
Location - User location for localized web search.
- WebSearch
Usage - Web search usage.
Enums§
- Audio
Format - Audio output format.
- Content
Type - Content type.
- Finish
Reason - Reason for finishing generation.
- Message
Content - Message content - can be text or multi-part content.
- Model
- Available MiMo models.
- Response
Format Type - Response format type.
- Role
- Message role.
- Stop
- Stop sequence configuration.
- Thinking
Type - Thinking mode configuration.
- Tool
Choice - Tool choice configuration.
- Tool
Type - Tool type.
- Voice
- Available voice options for text-to-speech.
Functions§
- styled_
text - Create styled text for TTS with the given style.