MCPcopy Create free account
hub / github.com/CopilotKit/OpenGenerativeUI / formatIssues

Function formatIssues

apps/app/src/lib/sandbox/sandbox-functions.ts:6–9  ·  view source on GitHub ↗
(error: z.ZodError)

Source from the content-addressed store, hash-verified

4export const SEND_PROMPT_EVENT = "opengenui:send-prompt";
5
6const formatIssues = (error: z.ZodError) =>
7 error.issues
8 .map((issue) => `${issue.path.join(".") || "(root)"}: ${issue.message}`)
9 .join("; ");
10
11const sendPromptParameters = z.object({
12 text: z.string().min(1).max(4000),

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected