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(
163
163
@agent_app .command ()
164
164
def run (
165
165
branch : str = typer .Argument (
166
- None ,
166
+ ... ,
167
167
help = "Branch name of current run" ,
168
168
),
169
169
override_previous_changes : bool = typer .Option (
Original file line number Diff line number Diff line change 4
4
from datasets import load_dataset
5
5
from git import Repo
6
6
from agent .agent_utils import (
7
- args2string ,
8
7
create_branch ,
9
8
get_message ,
10
9
get_target_edit_files ,
@@ -88,6 +87,10 @@ def run_agent_for_repo(
88
87
f"{ agent_config .agent_name } is not implemented; please add your implementations in baselines/agents.py."
89
88
)
90
89
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
+
91
94
create_branch (local_repo , branch , example ["base_commit" ])
92
95
93
96
# in cases where the latest commit of branch is not commit 0
@@ -169,7 +172,7 @@ def run_agent_for_repo(
169
172
170
173
171
174
def run_agent (
172
- branch : Optional [ str ] ,
175
+ branch : str ,
173
176
override_previous_changes : bool ,
174
177
backend : str ,
175
178
agent_config_file : str ,
@@ -204,10 +207,6 @@ def run_agent(
204
207
# if len(filtered_dataset) > 1:
205
208
# sys.stdout = open(os.devnull, "w")
206
209
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
-
211
210
with TerminalDisplay (len (filtered_dataset )) as display :
212
211
not_started_repos = [
213
212
cast (RepoInstance , example )["repo" ].split ("/" )[- 1 ]
You can’t perform that action at this time.
0 commit comments