Skip to main content

Installation

Setup

Python
PandaProbe traces both synchronous and asynchronous Python methods, plus the Promise-based TypeScript client.

Chat API

Span name: "mistral-chat", SpanKind: LLM
Python
TypeScript
What gets traced
  • Input: messages list, 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

Python
The TypeScript wrapper instruments the JavaScript SDK’s asynchronous chat.stream method:
TypeScript
Python’s chat.stream and chat.stream_async, plus TypeScript’s chat.stream, are traced with time-to-first-token and reduced output.

Token usage mapping

Mistral already uses our canonical names, so the mapping is the identity: