@judgy-ts/anthropic
v0.1.2
Published
Anthropic provider for Judgy TypeScript.
Readme
@judgy-ts/anthropic
Anthropic provider for Judgy TypeScript.
@judgy-ts/anthropic implements the LlmProvider contract from @judgy-ts/core using Anthropic's Messages API, so you can use Claude models as the semantic judge in Judgy evaluations.
Installation
npm install @judgy-ts/core @judgy-ts/anthropicWhat This Package Contains
AnthropicProviderAnthropicProviderOptions
Usage
import { SemanticEvaluator } from "@judgy-ts/core";
import { AnthropicProvider } from "@judgy-ts/anthropic";
const provider = new AnthropicProvider({
apiKey: process.env.ANTHROPIC_API_KEY!,
model: "claude-sonnet-4-20250514"
});
const evaluator = new SemanticEvaluator(provider);
const result = await evaluator.evaluate(
"You can request a refund within 30 days of purchase.",
"The answer should mention the refund deadline."
);Related Packages
@judgy-ts/coreprovidesSemanticEvaluator,LlmRequest, andLlmProvider@judgy-ts/expectadds higher-levelexpect(...)matchers
Repository
- https://github.com/maurogioberti/judgy-ts
