Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
fromPhoenixLLMEvaluator.ts812 B
import type { LLMEvaluator } from "@arizeai/phoenix-evals"; import { Evaluator } from "../../types/experiments"; import { asExperimentEvaluator } from "./asExperimentEvaluator"; /** * A function that acts as a bridge, converting phoenix-evals to be experiment evaluator compatible * @param phoenixEvaluator * @returns an experiment compatible Evaluator */ export function fromPhoenixLLMEvaluator< RecordType extends Record<string, unknown>, >(phoenixLLMEvaluator: LLMEvaluator<RecordType>): Evaluator { return asExperimentEvaluator({ name: phoenixLLMEvaluator.name, kind: "LLM", evaluate: (example) => { // For now blindly coerce the types // eslint-disable-next-line @typescript-eslint/no-explicit-any return phoenixLLMEvaluator.evaluate(example as any); }, }); }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Arize-ai/phoenix'

If you have feedback or need assistance with the MCP directory API, please join our Discord server