For AI agents: the complete documentation index is available at https://scriptedalchemy.github.io/agent-bundle/zh/llms.txt, the full documentation bundle is available at https://scriptedalchemy.github.io/agent-bundle/zh/llms-full.txt, and this page is available as Markdown at https://scriptedalchemy.github.io/agent-bundle/zh/api/classes/eval.EvalRunWriter.md.
  • 简体中文
  • Class: EvalRunWriter

    One writer owns one run directory; every other process creates its own run.

    Implements

    • EvalTrialWriter

    Constructors

    Constructor

    new EvalRunWriter(directory, record): EvalRunWriter

    Parameters

    directory

    string

    record

    EvalRunRecord

    Returns

    EvalRunWriter

    Accessors

    directory

    Get Signature

    get directory(): string

    Returns

    string


    record

    Get Signature

    get record(): EvalRunRecord

    Returns

    EvalRunRecord

    Methods

    appendEvent()

    appendEvent(event): Promise<EvalRunEvent>

    Parameters

    event

    EvalRunEventInput

    Returns

    Promise<EvalRunEvent>


    close()

    close(): Promise<void>

    Returns

    Promise<void>


    finish()

    finish(summary): Promise<EvalRunRecord>

    Parameters

    summary

    EvalRunSummary

    Returns

    Promise<EvalRunRecord>


    writeArtifactFile()

    writeArtifactFile(relativePath, contents): Promise<string>

    Parameters

    relativePath

    string

    contents

    string

    Returns

    Promise<string>

    Implementation of

    EvalTrialWriter.writeArtifactFile


    writeTrial()

    writeTrial(trial): Promise<EvalTrialRecord>

    Parameters

    trial

    EvalTrialRecord

    Returns

    Promise<EvalTrialRecord>

    Implementation of

    EvalTrialWriter.writeTrial