Automatically capture all Mistral AI chat completion calls, including tool/function calls and streaming responses.Documentation Index
Fetch the complete documentation index at: https://traceroot.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Setup
- Python
Usage
Once initialized, all Mistral calls are captured automatically:What Gets Captured
| Attribute | Description |
|---|---|
| Model | mistral-large-latest, mistral-small-latest, etc. |
| Messages | Input messages array |
| Response | Completion content |
| Tool calls | Function calls emitted by the model |
| Tokens | Input and output tokens |
| Cost | Calculated from token usage and model pricing |
| Latency | Request duration |
Run the example
Clone the repo and run a complete agent end-to-end.Python
Run the Python example