diff --git a/metagpt/roles/di/swe_agent.py b/metagpt/roles/di/swe_agent.py index 166de3918..5acce5f9d 100644 --- a/metagpt/roles/di/swe_agent.py +++ b/metagpt/roles/di/swe_agent.py @@ -4,7 +4,7 @@ import os from pydantic import Field from metagpt.logs import logger -from metagpt.prompts.di.swe import ( +from metagpt.prompts.di.swe_agent import ( MINIMAL_EXAMPLE, NEXT_STEP_TEMPLATE, SWE_AGENT_SYSTEM_TEMPLATE, diff --git a/tests/metagpt/roles/di/run_swe_agent_for_benchmark.py b/tests/metagpt/roles/di/run_swe_agent_for_benchmark.py index cdd8df5d7..54b3623a4 100644 --- a/tests/metagpt/roles/di/run_swe_agent_for_benchmark.py +++ b/tests/metagpt/roles/di/run_swe_agent_for_benchmark.py @@ -55,7 +55,7 @@ async def run(instance, swe_result_dir): logger.info(f"Instance {instance['instance_id']} already exists, skipping execution.") return - repo_path = TEST_REPO_DIR / instance["repo"].replace("-", "_").replace("/", "__") + "_" + instance["version"] + repo_path = TEST_REPO_DIR / (instance["repo"].replace("-", "_").replace("/", "__") + "_" + instance["version"]) # 前处理 terminal = Terminal()