UNPKG

eve

Version:

Filesystem-first framework for durable backend AI agents that run anywhere.

15 lines (14 loc) 635 B
import { generateText, type LanguageModel } from "ai"; import { Factuality } from "autoevals"; /** * The OpenAI-shaped client surface autoevals expects. Extracted from the * library so we don't take a direct dependency on `openai` types. */ type AutoevalsClient = NonNullable<Parameters<typeof Factuality>[0]["client"]>; type ProviderOptions = Parameters<typeof generateText>[0]["providerOptions"]; interface AutoevalsClientConfig { readonly languageModel: LanguageModel; readonly providerOptions?: ProviderOptions; } export declare function createAutoevalsClient(config: AutoevalsClientConfig): AutoevalsClient; export {};