feat: 添加CLI辅助意图分类和行动规划功能,增强复杂输入处理和执行策略优化

This commit is contained in:
catlog22
2026-01-14 13:23:22 +08:00
parent 633d918da1
commit 43b8cfc7b0
2 changed files with 412 additions and 15 deletions

View File

@@ -132,5 +132,34 @@
"action": "ask_user",
"message": "检测到多个可能意图,请确认工作流选择"
}
},
"cli_classification": {
"_doc": "CLI辅助意图分类配置对模糊或复杂输入使用Gemini进行语义理解",
"enabled": true,
"trigger_conditions": {
"low_confidence_threshold": 0.6,
"min_input_length": 100,
"low_match_count": 2,
"complexity_trigger": "high",
"ambiguous_patterns": ["不确定", "可能", "或者", "建议", "最好", "maybe", "perhaps", "should i", "what if", "or"]
},
"default_tool": "gemini",
"fallback_tool": "qwen",
"timeout_ms": 60000,
"cache_similar_inputs": true,
"max_retries": 2
},
"cli_action_planning": {
"_doc": "CLI辅助行动规划配置对高复杂度任务使用CLI规划最优执行策略",
"enabled": true,
"trigger_conditions": {
"complexity_threshold": "high",
"step_count_threshold": 3,
"multi_module_detected": true
},
"default_tool": "gemini",
"timeout_ms": 60000,
"allow_step_modification": true,
"risk_assessment": true
}
}