import { z } from 'zod'; import { optionalUrlSchema } from '@/schemas/common'; /** * Web intelligence result schema * Uses Zod v4's composition with common schemas for DRY code */ export const webIntelligenceResultSchema = z.object({ text: z.string().describe('Intelligence text content'), sources: z .array( z.object({ uri: optionalUrlSchema.describe('Source URI'), title: z.string().min(1).describe('Source title'), }) ) .describe('Source references'), });