Build (workflow)
Stage 2 — Build. Wire your code or agent to emit traces Stratix can ingest, and develop with evaluation-driven feedback from the start.
Last updated
Was this helpful?
Was this helpful?
from layerlens import Stratix
client = Stratix()
client.traces.create(
id="trace-1",
name="answer-question",
inputs={"prompt": prompt_text},
outputs={"response": response_text},
spans=[
{"name": "retrieval", "kind": "tool", "inputs": {...}, "outputs": {...}},
{"name": "llm", "kind": "llm", "model": "claude-opus-4-7", "inputs": {...}, "outputs": {...}}
],
tags={"environment": "production", "feature": "support-bot"}
)