Reference/Autoevals library/TypeScript/Modules

Namespace: Battle

Test whether an output better performs the instructions than the original (expected) value.

Functions

partial

partial<T>(args): Scorer<string, Omit<LLMClassifierArgs<{ instructions: string }>, T> & Partial<Pick<LLMClassifierArgs<{ instructions: string }>, T>>>

Type parameters

NameType
Textends "openAiApiKey" | "client" | "openAiOrganizationId" | "openAiBaseUrl" | "openAiDefaultHeaders" | "openAiDangerouslyAllowBrowser" | "azureOpenAi" | "model" | "temperature" | "maxTokens" | "useCoT" | "instructions"

Parameters

NameType
args{ [K in "openAiApiKey" | "client" | "openAiOrganizationId" | "openAiBaseUrl" | "openAiDefaultHeaders" | "openAiDangerouslyAllowBrowser" | "azureOpenAi" | "model" | "temperature" | "maxTokens" | "useCoT" | "instructions"]: LLMClassifierArgs<Object>[K] }

Returns

Scorer<string, Omit<LLMClassifierArgs<{ instructions: string }>, T> & Partial<Pick<LLMClassifierArgs<{ instructions: string }>, T>>>

Defined in

autoevals/js/partial.ts:5

On this page