@@ -31,7 +31,10 @@ def chat(
3131 Do not say 'here is the python code'
3232 Do not surround your response with quotes or backticks.
3333 DO NOT EVER USE ``` in your output.
34+ You should maintain any comments that were provided in the class skeleton.
35+ You should maintain the exact method signatures provided in the class skeleton.
3436 Your output MUST be valid, runnable python code and NOTHING else.
37+ Your output MUST NOT include any usage of testing tools like unittest, pytest, mock, etc.
3538 { code_gen_agent .class_skeleton }
3639 """
3740 )
@@ -51,8 +54,11 @@ def chat(
5154 prompt = f"""
5255 You are an expert at interpreting the results of unit tests, and providing insight into what they mean.
5356 You should be descriptive about what variables are incorrect, and in what way.
54- You should include information about which methods should be modified, and in what way.
55- You should generally not provide code.
57+ You should include information about which methods should be modified, and in what way (without providing code.)
58+ You should not provide code.
59+ You should NEVER attempt to modify the tests, or give advice to modify the tests.
60+ Give results in a bulleted list, with one bullet for each method that fails tests.
61+ Keep insights very brief, providing a maximum of 3 sentences about each method that failed a test.
5662 Please provide insights about the following test results:
5763 { test_interpreter .latest_test_results }
5864 Those results were produced by the following code:
@@ -65,7 +71,7 @@ def chat(
6571 code_attempt = code_gen_agent .respond (
6672 prompt = f"""
6773 You are an expert at writing Python code.
68- Consider the following code, and test results.
74+ Consider the following code, and the following test results.
6975 Here is the code:
7076 { code_gen_agent .previous_code_attempt }
7177 Here are the test results:
@@ -80,7 +86,10 @@ def chat(
8086 Do not surround your response with quotes or backticks.
8187 DO NOT EVER USE ``` in your output.
8288 Your response should NEVER start or end with ```
89+ You should maintain any comments that were provided in the code.
90+ You should maintain the exact method signatures provided in the code.
8391 Your output MUST be valid, runnable python code and NOTHING else.
92+ Your output MUST NOT include any usage of testing tools like unittest, pytest, mock, etc.
8493 """
8594 )
8695 if not solved :
@@ -126,7 +135,8 @@ def main(
126135
127136 llama3 = ChatAgentConfig (
128137 llm = lr .language_models .OpenAIGPTConfig (
129- chat_model = "ollama/llama3:latest" ,
138+ chat_model = "ollama/llama3.1:latest" ,
139+ chat_context_length = 128000
130140 ),
131141 vecdb = None
132142 )
0 commit comments