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
@@ -139,6 +139,7 @@ describe('Chat API', () => {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
agentId: 'agent1',
textPrompt: 'hi',
}),
})