@@ -48,10 +48,7 @@ def answer_issue(
4848 dockerfile_content : Optional [str ] = None ,
4949 image_name : Optional [str ] = None ,
5050 workdir : Optional [str ] = None ,
51- ) -> (
52- tuple [None , bool , bool , bool , bool , None , None ]
53- | tuple [str , bool , bool , bool , bool , str , IssueType ]
54- ):
51+ ) -> tuple [None , bool , bool , bool , None , None ] | tuple [str , bool , bool , bool , str , IssueType ]:
5552 """
5653 Processes an issue, generates patches if needed, runs optional builds and tests, and returning the results.
5754
@@ -76,9 +73,10 @@ def answer_issue(
7673 Tuple containing:
7774 - edit_patch (str): The generated patch for the issue.
7875 - passed_reproducing_test (bool): Whether the reproducing test passed.
79- - passed_build (bool): Whether the build passed.
76+ - passed_regression_test (bool): Whether the regression tests passed.
8077 - passed_existing_test (bool): Whether the existing tests passed.
8178 - issue_response (str): Response generated for the issue.
79+ - issue_type (IssueType): The type of the issue (BUG or QUESTION).
8280 """
8381
8482 # Set up a dedicated logger for this thread
@@ -111,7 +109,6 @@ def answer_issue(
111109 kg = knowledge_graph ,
112110 git_repo = repository ,
113111 container = container ,
114- build_commands = build_commands ,
115112 test_commands = test_commands ,
116113 )
117114
@@ -131,15 +128,14 @@ def answer_issue(
131128 return (
132129 output_state ["edit_patch" ],
133130 output_state ["passed_reproducing_test" ],
134- output_state ["passed_build" ],
135131 output_state ["passed_regression_test" ],
136132 output_state ["passed_existing_test" ],
137133 output_state ["issue_response" ],
138134 output_state ["issue_type" ],
139135 )
140136 except Exception as e :
141137 logger .error (f"Error in answer_issue: { str (e )} \n { traceback .format_exc ()} " )
142- return None , False , False , False , False , None , None
138+ return None , False , False , False , None , None
143139 finally :
144140 logger .removeHandler (file_handler )
145141 file_handler .close ()
0 commit comments