iconsulting/packages/services
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-service fix(conversation): implement proper tool loop for Claude API 2026-01-09 21:29:18 -08:00
evolution-service fix: 添加bcrypt原生编译支持 2026-01-09 09:12:32 -08:00
knowledge-service fix: 使用jq正确处理package.json移除workspace依赖 2026-01-09 08:49:41 -08:00
payment-service fix: 使用jq正确处理package.json移除workspace依赖 2026-01-09 08:49:41 -08:00
user-service fix(user-service): handle optional fingerprint parameter 2026-01-09 21:02:44 -08:00