iconsulting/packages
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
..
admin-client Initial commit: iConsulting 香港移民咨询智能客服系统 2026-01-09 00:01:12 -08:00
services fix(conversation): implement proper tool loop for Claude API 2026-01-09 21:29:18 -08:00
shared Initial commit: iConsulting 香港移民咨询智能客服系统 2026-01-09 00:01:12 -08:00
web-client fix: 添加 border 颜色定义修复 Tailwind 构建错误 2026-01-09 07:06:32 -08:00