agent-Specialization/agentskills/agent-build-standard/references/models.md
JOJO 07be7a1061 feat: gracefully stop tool execution on user request
- Remove direct task.cancel() calls, use stop flag instead
- Monitor stop flag every 100ms during tool execution
- Cancel tool task immediately when stop flag is detected
- Return "命令执行被用户取消" as tool result with role=tool
- Save cancellation result to conversation history
- Prevent abrupt task termination, allow graceful shutdown

Changes:
- server/socket_handlers.py: Comment out pending_task.cancel()
- server/tasks.py: Comment out entry['task'].cancel()
- server/chat_flow_tool_loop.py: Add stop flag monitoring loop

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-03-08 03:50:34 +08:00

445 B

模型清单(示例)

使用说明

  • 仅作为示例清单,不代表最新可用版本
  • 如需最新信息,请在运行环境中检索或询问产品官方文档

闭源/商用托管

  • OpenAI: ChatGPT / GPT 系列
  • Anthropic: Claude 系列
  • Google: Gemini 系列
  • Moonshot: Kimi 系列
  • MiniMax: MiniMax 系列

开源/开放权重(示例)

  • Qwen 系列
  • DeepSeek 系列
  • Llama 系列
  • Mistral 系列
  • Yi 系列