Skip to content

TraceSource

autogen.beta.eval.sources.trace_source.TraceSource #

Bases: Protocol

A backend that supplies traces for evaluation.

list #

list()

Yield a :class:TraceRef for each available trace (cheap; no payload).

Source code in autogen/beta/eval/sources/trace_source.py
def list(self) -> AsyncIterator[TraceRef]:
    """Yield a :class:`TraceRef` for each available trace (cheap; no payload)."""
    ...

load async #

load(ref)

Materialize the :class:Trace for ref.

Source code in autogen/beta/eval/sources/trace_source.py
async def load(self, ref: TraceRef) -> Trace:
    """Materialize the :class:`Trace` for ``ref``."""
    ...