jest-ai
Version:
Custom jest matchers for testing AI applications
7 lines (6 loc) • 302 B
TypeScript
import { ChatCompletion } from "openai/src/resources/chat/completions";
import { MatcherUtils } from "expect";
export declare function toHaveUsedSomeTools(this: MatcherUtils, received: () => Promise<ChatCompletion>, expectedTools: string[]): Promise<{
message: () => string;
pass: boolean;
}>;