@agentica/benchmark
Version:
Agentic AI Library specialized in LLM Function Calling
41 lines (40 loc) • 1.36 kB
TypeScript
/**
* @module
* This file contains functions to work with AgenticaBenchmarkPredicator.
*
* @author Wrtn Technologies
*/
import type { Agentica, AgenticaOperation, MicroAgentica } from "@agentica/core";
import type { IAgenticaBenchmarkExpected } from "../structures/IAgenticaBenchmarkExpected";
export declare const AgenticaBenchmarkPredicator: {
isNext: typeof isNext;
success: typeof success;
};
declare function isNext(agent: Agentica | MicroAgentica): Promise<string | null>;
/**
* Check if the called operations match the expected operations.
*
* @param props Properties for checking the match of the called operations
* and the expected operations
* @returns `true` if the called operations match the expected operations,
* otherwise `false`.
*/
export declare function success(props: {
/**
* Expected operations to be called.
*
* For 'allOf' within an 'array', the next expected element starts checking from the element that follows the last called element in 'allOf'.
*/
expected: IAgenticaBenchmarkExpected;
/**
* Specified operations.
*/
operations: Array<AgenticaOperation>;
/**
* If it's `false`, check the array and let it go even if there's something wrong between them.
*
* @default `false`
*/
strict?: boolean;
}): boolean;
export {};