iconsulting/packages/services/conversation-service/src
hailin 72e67fa5d9 fix(conversation): implement proper tool loop for Claude API
- Fix streaming JSON parsing for tool inputs by accumulating partial JSON
  and parsing only on content_block_stop
- Implement proper tool loop to continue conversation after tool execution
- Send tool results back to Claude to get final response
- Add safety limit of 10 iterations for tool loops

This fixes the issue where AI responses were truncated after using tools
like search_knowledge.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-09 21:29:18 -08:00
..
conversation fix(conversation): add class-validator decorators to DTO classes 2026-01-09 20:20:46 -08:00
domain/entities Initial commit: iConsulting 香港移民咨询智能客服系统 2026-01-09 00:01:12 -08:00
infrastructure/claude fix(conversation): implement proper tool loop for Claude API 2026-01-09 21:29:18 -08:00
app.module.ts Initial commit: iConsulting 香港移民咨询智能客服系统 2026-01-09 00:01:12 -08:00
main.ts fix: conversation-service use PORT env variable instead of CONVERSATION_SERVICE_PORT 2026-01-09 10:54:49 -08:00