Documentation Index
Fetch the complete documentation index at: https://docs.pandaprobe.com/llms.txt
Use this file to discover all available pages before exploring further.
Installation
- pip
- uv
Setup
- Sync
- Async
Chat API
Span name:"mistral-chat", SpanKind: LLM
- Input:
messageslist, captured directly (Mistral already speaks the universal schema) - Output: assistant message from
choices[0].message - Model name (from the response body)
- Token usage
- Model parameters:
temperature,top_p,max_tokens,random_seed,safe_prompt,response_format,tool_choice,presence_penalty,frequency_penalty,n,stop
Streaming
EventStream / EventStreamAsync context manager, buffers delta.content chunks, and emits a single LLM span containing the full reduced output and the final token usage Mistral reports on the terminal chunk.
Async
The Mistral SDK exposes async viachat.complete_async and chat.stream_async on the same client class — both are instrumented by wrap_mistral. No separate async client class exists.
Token usage mapping
Mistral already uses our canonical names, so the mapping is the identity:| Mistral Field | PandaProbe Field |
|---|---|
prompt_tokens | prompt_tokens |
completion_tokens | completion_tokens |
total_tokens | total_tokens |

