File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -163,7 +163,7 @@ def config(
163163@agent_app .command ()
164164def run (
165165 branch : str = typer .Argument (
166- None ,
166+ ... ,
167167 help = "Branch name of current run" ,
168168 ),
169169 override_previous_changes : bool = typer .Option (
Original file line number Diff line number Diff line change 44from datasets import load_dataset
55from git import Repo
66from agent .agent_utils import (
7- args2string ,
87 create_branch ,
98 get_message ,
109 get_target_edit_files ,
@@ -88,6 +87,10 @@ def run_agent_for_repo(
8887 f"{ agent_config .agent_name } is not implemented; please add your implementations in baselines/agents.py."
8988 )
9089
90+ # # if branch_name is not provided, create a new branch name based on agent_config
91+ # if branch is None:
92+ # branch = args2string(agent_config)
93+
9194 create_branch (local_repo , branch , example ["base_commit" ])
9295
9396 # in cases where the latest commit of branch is not commit 0
@@ -169,7 +172,7 @@ def run_agent_for_repo(
169172
170173
171174def run_agent (
172- branch : Optional [ str ] ,
175+ branch : str ,
173176 override_previous_changes : bool ,
174177 backend : str ,
175178 agent_config_file : str ,
@@ -204,10 +207,6 @@ def run_agent(
204207 # if len(filtered_dataset) > 1:
205208 # sys.stdout = open(os.devnull, "w")
206209
207- # if branch_name is not provided, create a new branch name based on agent_config
208- if branch is None :
209- branch = args2string (agent_config )
210-
211210 with TerminalDisplay (len (filtered_dataset )) as display :
212211 not_started_repos = [
213212 cast (RepoInstance , example )["repo" ].split ("/" )[- 1 ]
You can’t perform that action at this time.
0 commit comments