|
|
@@ -193,7 +193,7 @@ def _format_evaluate_result(result: Dict[str, Any]) -> str:
|
|
|
def _get_allowed_tools_for_mode(mode: str, context: dict) -> Optional[List[str]]:
|
|
|
"""获取模式对应的允许工具列表"""
|
|
|
if mode == "explore":
|
|
|
- return ["read_file", "grep_content", "glob_files"]
|
|
|
+ return ["read_file", "grep_content", "glob_files", "goal"]
|
|
|
elif mode in ["delegate", "evaluate"]:
|
|
|
# 获取所有工具,排除 subagent
|
|
|
runner = context.get("runner")
|
|
|
@@ -278,7 +278,7 @@ async def _handle_explore_mode(
|
|
|
task=branch,
|
|
|
trace_id=sub_trace_id,
|
|
|
agent_type="explore",
|
|
|
- tools=["read_file", "grep_content", "glob_files"]
|
|
|
+ tools=["read_file", "grep_content", "glob_files", "goal"]
|
|
|
)
|
|
|
tasks.append(task_coro)
|
|
|
|