langchain.js
    Preparing search index...

    Function loadEvaluator

    • Load the requested evaluation chain specified by a string

      Type Parameters

      Parameters

      • type: T

        The type of evaluator to load.

      • options: LoadEvaluatorOptions

        llm The language model to use for the evaluator. - criteria The criteria to use for the evaluator. - agentTools A list of tools available to the agent,for TrajectoryEvalChain.

      Returns Promise<EvaluatorType[T]>