UNPKG

parea-ai

Version:

Client SDK library to connect to Parea AI.

25 lines (24 loc) 1.38 kB
import { CreateTestCase, CreateTestCaseCollection } from '../types'; /** * Create a test case collection from a dictionary of test cases. * * @param data = list of key-value pairs where keys represent input names. * Each item in the list represent a test case row. * Target and Tags are reserved keys. There can only be one target and tags key per dict item. * If target is present it will represent the target/expected response for the inputs. * If tags are present they must be a list of json_serializable values. * @param name - A unique name for the test collection. If not provided a random name will be generated. * @returns CreateTestCaseCollection */ export declare function createTestCollection(data: Record<string, any>[], name?: string): Promise<CreateTestCaseCollection>; /** * Create a list of test cases from a dictionary. * * @param data = list of key-value pairs where keys represent input names. * Each item in the list represent a test case row. * Target and Tags are reserved keys. There can only be one target and tags key per dict item. * If target is present it will represent the target/expected response for the inputs. * If tags are present they must be a list of json_serializable values. * @returns CreateTestCase[] */ export declare function createTestCases(data: Record<string, any>[]): Promise<CreateTestCase[]>;