Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

552 B
Raw Blame
import { z } from "zod";
import { LLMJSONSchema, LLMToolNameSchema } from "@langfuse/shared";

export { LLMToolNameSchema } from "@langfuse/shared";

const LLMToolInput = z.object({
  name: LLMToolNameSchema,
  description: z.string(),
  parameters: LLMJSONSchema,
});

export const CreateLlmToolInput = LLMToolInput.extend({
  projectId: z.string(),
});

export const UpdateLlmToolInput = LLMToolInput.extend({
  id: z.string(),
  projectId: z.string(),
});

export const DeleteLlmToolInput = z.object({
  id: z.string(),
  projectId: z.string(),
});