Installation
Basic Setup
Run
zeroeval setup once to save your API key securely to
~/.config/zeroeval/config.jsonPatterns
Decorators
The@span decorator is the easiest way to add tracing:
Context Manager
For more control over span lifecycles:Artifact Spans
When a single prompt run produces multiple judged outputs (e.g. a final decision and a customer card), useze.artifact_span to mark each output as a named artifact. The prompt completions page surfaces the primary artifact as the row preview and lets you switch between artifacts in the detail view.
artifact_span defaults to kind="llm" and writes the completion_artifact_* attributes automatically. All other ze.span features (tags, sessions, prompt metadata inheritance) work the same way.
ze.artifact_span is available in the Python SDK only for now.