import { E as EvalTraceInput } from './index-fZyfLCHE.js'; import { T as ToolErrorRecord } from './types-BBk0lTBo.js'; /** * True when an MCP {@link https://modelcontextprotocol.io CallToolResult} * indicates a tool execution error (`isError: true`). */ declare function isCallToolResultError(result: unknown): boolean; /** * Detect MCP-style tool failure on a single persisted trace message part * (aligns with inspector trace viewer heuristics). Behaviour-preserving * boolean over {@link classifyToolFailurePart}. */ declare function traceMessagePartIndicatesToolFailure(part: unknown): boolean; /** * Whether a stored eval trace shows at least one tool execution failure * (errored tool spans and/or MCP error tool-results in messages). */ declare function traceIndicatesToolExecutionFailure(trace: EvalTraceInput | undefined): boolean; /** * Extract classified tool failures from a stored eval trace, for the * `noToolErrors` predicate. Mirrors {@link traceIndicatesToolExecutionFailure}'s * detection but returns one classified record per failure rather than a boolean. */ declare function extractToolErrors(trace: EvalTraceInput | undefined): ToolErrorRecord[]; type FinalizeEvalPassedParams = { /** Pass/fail from tool-call matching or user test assertion */ matchPassed: boolean; trace?: EvalTraceInput; /** Non-empty when the runner aborted due to a step/tool/network error */ iterationError?: string | null; /** * When not `false`, failed tool executions and iteration errors fail the case. * Default: treat as `true`. */ failOnToolError?: boolean; /** * State-based predicate verdicts (see `./predicates`). When present, the case * additionally fails unless every predicate passed. Predicates are their own * assertion layer — they apply regardless of `failOnToolError`. */ predicateResults?: ReadonlyArray<{ passed: boolean; }>; }; /** * Combine structural pass/fail with tool execution outcomes for eval reporting. */ declare function finalizePassedForEval(params: FinalizeEvalPassedParams): boolean; export { type FinalizeEvalPassedParams as F, traceMessagePartIndicatesToolFailure as a, extractToolErrors as e, finalizePassedForEval as f, isCallToolResultError as i, traceIndicatesToolExecutionFailure as t };