类型别名 EvaluatorT

EvaluatorT:
    | DeprecatedRunEvaluator
    | DeprecatedFunctionEvaluator
    | DeprecatedAsyncFunctionEvaluator
    | (
        args: {
            example: Example;
            inputs: Record<string, any>;
            outputs: Record<string, any>;
            run: Run;
            attachments?: Record<string, any>;
            referenceOutputs?: Record<string, any>;
        },
    ) => EvaluationResult
    | EvaluationResult[]
    | EvaluationResults
    | (
        args: {
            example: Example;
            inputs: Record<string, any>;
            outputs: Record<string, any>;
            run: Run;
            attachments?: Record<string, any>;
            referenceOutputs?: Record<string, any>;
        },
    ) => Promise<EvaluationResult | EvaluationResult[] | EvaluationResults>
© . This site is unofficial and not affiliated with LangChain, Inc.
这些文档随着 LangChain v1.0 在 2025 年 10 月的发布而弃用,并且不再维护。 请访问 v1.0 文档