Files
LocalAgent/intent/labels.py
Mimikko-zeus 68f4f01cd7 feat:增强需求澄清与任务管理功能
更新了 .env.example,新增聊天模型配置,以提升对话处理能力。
增强了 README.md,反映了包括需求澄清、代码复用和自动重试在内的新功能。
重构了 agent.py,以支持多模型交互,并为无法在本地执行的任务新增了引导处理逻辑。
改进了 SandboxRunner,增加了任务执行成功校验,并加入了工作区清理功能。

扩展了 HistoryManager,支持任务摘要生成以及记录的批量删除。
优化了 chat_view.py 和 history_view.py 中的 UI 组件,提升用户体验,包括 Markdown 渲染和任务管理选项。
2026-01-07 12:35:27 +08:00

17 lines
381 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""
意图标签定义
"""
# 意图类型常量
CHAT = "chat"
EXECUTION = "execution"
GUIDANCE = "guidance" # 操作指导(无法通过本地代码完成的任务)
# 执行任务置信度阈值
# 低于此阈值一律判定为 chat宁可少执行不可误执行
EXECUTION_CONFIDENCE_THRESHOLD = 0.6
# 所有有效标签
VALID_LABELS = {CHAT, EXECUTION, GUIDANCE}