Automatically capture module executions, signature predictions, and underlying LLM calls in DSPy programs.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, every DSPy module call and underlying LLM request is traced automatically:What Gets Captured
| Attribute | Description |
|---|---|
| Module calls | Each Module.__call__ / Module.forward invocation |
| Predictors | Predict, ChainOfThought, ReAct, etc. as nested spans |
| Signatures | Input/output fields declared on each signature |
| LLM calls | Raw completion requests to the configured dspy.LM |
| Tokens & Cost | Aggregated token usage and pricing |
| Latency | Duration per module call and per LLM call |
Run the example
Clone the repo and run a complete agent end-to-end.Python
Run the Python example