🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
import { z } from "zod";
export const TracingSearchType = z.enum(["id", "content", "input", "output"]);
// id: for searching smaller columns like IDs, types, and other metadata
// content: for searching input/output text of functions traced via OpenTelemetry
export type TracingSearchType = z.infer<typeof TracingSearchType>;
export const TRACING_SEARCH_TYPE_REQUIRED_MESSAGE =
"At least one search type is required when searching tracing data";
export const hasValidTracingSearchTypes = ({
searchQuery,
searchType,
}: {
searchQuery?: string | null;
searchType?: TracingSearchType[] | null;
}) => !searchQuery || !searchType || searchType.length > 0;