For the complete documentation index, see llms.txt. This page is also available as Markdown.

DSPy

DSPy integration — emit traces from DSPy programs.

DSPy programs emit a structured trace per dspy.Predict call. Map to Stratix trace via a callback that fires on each compiled program execution.

from layerlens import Stratix
client = Stratix()

# After dspy program runs, capture the trace
client.traces.create(id=run_id, name="dspy-program", inputs={...}, outputs={...}, spans=[...])

Last updated

Was this helpful?