Installation
- pip
- uv
- npm
- yarn
- pnpm
Setup
- Python
- TypeScript
Python
Generate content
Span name:"gemini-generate", SpanKind: LLM
Python
TypeScript
- Input:
contentsplussystem_instructionnormalized to messages format (role"model"mapped to"assistant") - Output: answer text (non-thought parts)
- Model name
- Token usage
- Model parameters:
temperature,top_p,top_k,max_output_tokens,stop_sequences, and related fields - Thinking or reasoning parts stored in metadata as
reasoning_summary
Streaming
Python
TypeScript streaming
PandaProbe traces Python’s synchronous and asynchronous APIs and TypeScript’s Promise-based APIs with the same span fields.
Thinking mode
When using Gemini’s thinking mode, thought parts are automatically separated from answer parts. Thought content is stored in metadata asreasoning_summary, while the span output contains only the answer text.

