feat(chatbot): require agentId in ChatRequest and validate agent presence

This commit is contained in:
yiling
2026-07-07 11:27:29 +08:00
parent 63590d5329
commit 7b6db5b56c
4 changed files with 42 additions and 32 deletions
+1
View File
@@ -2,6 +2,7 @@ import { z } from 'zod'
export const chatRequestSchema = z
.object({
agentId: z.string(),
textPrompt: z.string().optional(),
attachedFiles: z.array(z.string()).optional(), // Uploaded file asset IDs
assetIds: z.array(z.string()).optional(), // Workspace file/folder IDs referenced