Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
ExperimentRunTokenCosts.tsx1.25 kB
import { Suspense } from "react"; import { Pressable } from "react-aria"; import { Loading, RichTooltip, TextProps, TooltipArrow, TooltipTrigger, } from "@phoenix/components"; import { TokenCosts } from "@phoenix/components/trace/TokenCosts"; import { ExperimentRunTokenCostsDetails } from "./ExperimentRunTokenCostsDetails"; type ExperimentRunTokenCostsProps = { /** * The total cost of the experiment run */ costTotal: number | null; /** * The id of the experiment run node */ experimentRunId: string; /** * The size of the icon and text */ size?: TextProps["size"]; }; /** * Displays the cost of an experiment run with detailed breakdown */ export function ExperimentRunTokenCosts(props: ExperimentRunTokenCostsProps) { return ( <TooltipTrigger isDisabled={props.costTotal == null}> <Pressable> <TokenCosts size={props.size} aria-role="button"> {props.costTotal} </TokenCosts> </Pressable> <RichTooltip> <TooltipArrow /> <Suspense fallback={<Loading />}> <ExperimentRunTokenCostsDetails experimentRunId={props.experimentRunId} /> </Suspense> </RichTooltip> </TooltipTrigger> ); }

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