🪢 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";
import { LLMJSONSchema } from "@langfuse/shared";
export const LLMSchemaNameSchema = z
.string()
.regex(
/^[a-zA-Z0-9\._-]+$/,
"Name must contain only alphanumeric letters, hyphens, periods and underscores",
)
.min(1, "Name is required");
const LLMSchemaInput = z.object({
name: LLMSchemaNameSchema,
description: z.string(),
schema: LLMJSONSchema,
});
export const CreateLlmSchemaInput = LLMSchemaInput.extend({
projectId: z.string(),
});
export const UpdateLlmSchemaInput = LLMSchemaInput.extend({
id: z.string(),
projectId: z.string(),
});
export const DeleteLlmSchemaInput = z.object({
id: z.string(),
projectId: z.string(),
});