Skip to main content
Glama

@arizeai/phoenix-mcp

Official
by Arize-ai
CategoricalAnnotationInput.tsx2.15 kB
import { forwardRef } from "react"; import { css } from "@emotion/react"; import { Button, Flex, ListBox, Popover, Select, SelectItem, SelectValue, Text, } from "@phoenix/components"; import { AnnotationInputExplanation } from "@phoenix/components/annotation/AnnotationInputExplanation"; import { AnnotationInputLabel } from "@phoenix/components/annotation/AnnotationInputLabel"; import { SelectChevronUpDownIcon } from "@phoenix/components/icon"; import { SelectProps } from "@phoenix/components/select"; import { AnnotationConfigCategorical } from "@phoenix/pages/settings/types"; import { AnnotationInputPropsBase } from "./types"; type CategoricalAnnotationInputProps = AnnotationInputPropsBase<AnnotationConfigCategorical> & Omit< SelectProps<{ label: string; score: number }, "single">, "validate" | "value" | "onChange" >; export const CategoricalAnnotationInput = forwardRef< HTMLButtonElement, CategoricalAnnotationInputProps >(({ annotationConfig, annotation, onSubmitExplanation, ...props }, ref) => { return ( <Flex gap="size-50" alignItems="center" position="relative"> <AnnotationInputExplanation annotation={annotation} onSubmit={onSubmitExplanation} /> <Select id={annotationConfig.id} name={annotationConfig.name} defaultValue={annotation?.label ?? undefined} size="S" {...props} css={css` width: 100%; `} > <AnnotationInputLabel>{annotationConfig.name}</AnnotationInputLabel> <Button ref={ref}> <SelectValue /> <SelectChevronUpDownIcon /> </Button> <Text slot="description">{annotationConfig.description}</Text> <Popover> <ListBox style={{ minHeight: "auto" }}> {annotationConfig.values?.map((option) => ( <SelectItem key={option.label} id={option.label}> {option.label} </SelectItem> ))} </ListBox> </Popover> </Select> </Flex> ); }); CategoricalAnnotationInput.displayName = "CategoricalAnnotationInput";

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