@@ -31,7 +31,10 @@ def chat(
31
31
Do not say 'here is the python code'
32
32
Do not surround your response with quotes or backticks.
33
33
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.
34
36
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.
35
38
{ code_gen_agent .class_skeleton }
36
39
"""
37
40
)
@@ -51,8 +54,11 @@ def chat(
51
54
prompt = f"""
52
55
You are an expert at interpreting the results of unit tests, and providing insight into what they mean.
53
56
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.
56
62
Please provide insights about the following test results:
57
63
{ test_interpreter .latest_test_results }
58
64
Those results were produced by the following code:
@@ -65,7 +71,7 @@ def chat(
65
71
code_attempt = code_gen_agent .respond (
66
72
prompt = f"""
67
73
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.
69
75
Here is the code:
70
76
{ code_gen_agent .previous_code_attempt }
71
77
Here are the test results:
@@ -80,7 +86,10 @@ def chat(
80
86
Do not surround your response with quotes or backticks.
81
87
DO NOT EVER USE ``` in your output.
82
88
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.
83
91
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.
84
93
"""
85
94
)
86
95
if not solved :
@@ -126,7 +135,8 @@ def main(
126
135
127
136
llama3 = ChatAgentConfig (
128
137
llm = lr .language_models .OpenAIGPTConfig (
129
- chat_model = "ollama/llama3:latest" ,
138
+ chat_model = "ollama/llama3.1:latest" ,
139
+ chat_context_length = 128000
130
140
),
131
141
vecdb = None
132
142
)
0 commit comments