| Example | Description |
|---|---|
| Basic | The minimal MiMo agent, run four ways: sync, sync + streaming, async, and async + streaming. |
| String Model | Create an agent from the xiaomi:<model-id> string shorthand. |
| Tool Use | Web search while thinking mode is on. |
| Structured Output | Return a typed Pydantic object via JSON mode. |
| Thinking Mode | Toggle thinking on/off with the use_thinking flag. |
| Reasoning Agent | Solve a logic puzzle with thinking mode on. |
Xiaomi MiMo
Xiaomi MiMo
Xiaomi MiMo agent examples for basic runs, string model shorthand, web search, structured output, thinking mode, and reasoning.