Skip to main content

Async Job Models

AsyncJobHandle

Generic async job handle used by failure analysis and other modules. Wraps polling, cancellation, and result retrieval. wait() parameters:

AsyncJobStatus

Properties: is_running, is_completed, is_failed.

Trace Models

TraceRecord

A trace summary in a list response.

TraceListResponse

Paginated list of traces. Supports len() and iteration.

TraceOverview

Basic trace information.

TraceSummary

Detailed trace summary with full metadata.

TraceMessage

A message in a trace’s conversation.

TraceSpan

A span in a trace’s execution tree.

TraceFullResult

Complete trace data including messages, spans, retrievals, and execution tree.

TraceEvalStep

An evaluation step computed from a trace.

RAG Models

DocumentHit

A document match from a retrieval step.

RetrievalInfo

Information about a retrieval step.

Citation

A citation linking a generated answer to a source document.

GenerationInfo

Information about a generation step.

FormatCheck

Output format analysis.