Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
12 lines
567 B
TypeScript
12 lines
567 B
TypeScript
/** The shapes of the structured results, shared by every server-side provider. */
|
|
import { z } from "zod";
|
|
import type { SchemaName } from "../src/llm/types";
|
|
|
|
export const schemas: Record<SchemaName, z.ZodType> = {
|
|
cascade: z.object({ levels: z.number().int(), reason: z.string() }),
|
|
resolve: z.object({ resolutions: z.array(z.object({ id: z.string(), text: z.string(), rationale: z.string() })) }),
|
|
contradictions: z.object({
|
|
contradictions: z.array(z.object({ node: z.string(), other: z.string(), explanation: z.string(), text: z.string() })),
|
|
}),
|
|
};
|