@langwatch/scenario
    Preparing search index...

    Variable traceConst

    trace: {
        contexts: StateMapping;
        spans: StateMapping;
        toolCalls(name: string): ToolCallsMapping;
    } = ...

    Inputs that read evidence from the traces of the run: retrieved contexts, the spans, or the calls of a tool.

    Type Declaration

    • Readonlycontexts: StateMapping

      state.contexts: every chunk the agent retrieved, across the run.

    • Readonlyspans: StateMapping

      state.spans: every span of every trace of the run, in start order.

    • toolCalls: function