Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

autoevals

Package Overview
Dependencies
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autoevals - npm Package Compare versions

Comparing version 0.0.76 to 0.0.77

31

jsdist/index.d.ts
import { Scorer, ScorerArgs, Score } from '@braintrust/core';
export { Score, Scorer, ScorerArgs } from '@braintrust/core';
import { ChatCompletion, ChatCompletionMessageParam, ChatCompletionCreateParams } from 'openai/resources';
import { ChatCompletion, ChatCompletionMessageParam, ChatCompletionTool, ChatCompletionToolChoiceOption } from 'openai/resources';

@@ -8,4 +8,4 @@ interface CachedLLMParams {

messages: ChatCompletionMessageParam[];
functions?: ChatCompletionCreateParams.Function[];
function_call?: ChatCompletionCreateParams["function_call"];
tools?: ChatCompletionTool[];
tool_choice?: ChatCompletionToolChoiceOption;
temperature?: number;

@@ -52,19 +52,4 @@ max_tokens?: number;

} & OpenAIAuth;
declare function buildClassificationFunctions(useCoT: boolean, choiceStrings: string[]): {
name: string;
description: string;
parameters: {
properties: {
choice: {
enum: string[];
description: string;
title: string;
type: string;
};
};
required: string[];
title: string;
type: string;
};
}[];
declare const DEFAULT_MODEL = "gpt-4o";
declare function buildClassificationTools(useCoT: boolean, choiceStrings: string[]): ChatCompletionTool[];
type OpenAIClassifierArgs<RenderArgs> = {

@@ -75,3 +60,3 @@ name: string;

choiceScores: Record<string, number>;
classificationFunctions: ChatCompletionCreateParams.Function[];
classificationTools: ChatCompletionTool[];
cache?: ChatCache;

@@ -126,3 +111,3 @@ } & LLMArgs & RenderArgs;

output: string;
expected?: string;
expected?: string | undefined;
}>>;

@@ -275,2 +260,2 @@ /**

export { AnswerCorrectness, AnswerRelevancy, AnswerSimilarity, Battle, ClosedQA, ContextEntityRecall, ContextPrecision, ContextRecall, ContextRelevancy, EmbeddingSimilarity, Evaluators, Factuality, Faithfulness, Humor, JSONDiff, type LLMArgs, type LLMClassifierArgs, LLMClassifierFromSpec, LLMClassifierFromSpecFile, LLMClassifierFromTemplate, Levenshtein, LevenshteinScorer, ListContains, type ModelGradedSpec, Moderation, NumericDiff, OpenAIClassifier, type OpenAIClassifierArgs, Possible, type ScorerWithPartial, Security, Sql, Summary, Translation, ValidJSON, buildClassificationFunctions, makePartial, templates };
export { AnswerCorrectness, AnswerRelevancy, AnswerSimilarity, Battle, ClosedQA, ContextEntityRecall, ContextPrecision, ContextRecall, ContextRelevancy, DEFAULT_MODEL, EmbeddingSimilarity, Evaluators, Factuality, Faithfulness, Humor, JSONDiff, type LLMArgs, type LLMClassifierArgs, LLMClassifierFromSpec, LLMClassifierFromSpecFile, LLMClassifierFromTemplate, Levenshtein, LevenshteinScorer, ListContains, type ModelGradedSpec, Moderation, NumericDiff, OpenAIClassifier, type OpenAIClassifierArgs, Possible, type ScorerWithPartial, Security, Sql, Summary, Translation, ValidJSON, buildClassificationTools, makePartial, templates };
{
"name": "autoevals",
"version": "0.0.76",
"version": "0.0.77",
"description": "Universal library for evaluating AI models",
"repository": {
"type": "git",
"url": "git+https://github.com/braintrustdata/autoevals.git"
},
"homepage": "https://www.braintrust.dev/docs",
"main": "./jsdist/index.js",

@@ -6,0 +11,0 @@ "module": "./jsdist/index.mjs",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc