Spaces:
Runtime error
Runtime error
Update agents/software_engineer_agent.py
Browse files
agents/software_engineer_agent.py
CHANGED
|
@@ -19,10 +19,8 @@ def run(state: dict) -> dict:
|
|
| 19 |
output_ids = model.generate(input_ids, max_new_tokens=3000)
|
| 20 |
output = tokenizer.decode(output_ids[0], skip_special_tokens=True)
|
| 21 |
|
| 22 |
-
ai_message = {"role": "assistant", "content": output}
|
| 23 |
-
|
| 24 |
return {
|
| 25 |
-
"messages": [
|
| 26 |
"chat_log": state["chat_log"] + [{"role": "Software Engineer", "content": output}],
|
| 27 |
"dev_output": output,
|
| 28 |
}
|
|
|
|
| 19 |
output_ids = model.generate(input_ids, max_new_tokens=3000)
|
| 20 |
output = tokenizer.decode(output_ids[0], skip_special_tokens=True)
|
| 21 |
|
|
|
|
|
|
|
| 22 |
return {
|
| 23 |
+
"messages": [AIMessage(content=output)],
|
| 24 |
"chat_log": state["chat_log"] + [{"role": "Software Engineer", "content": output}],
|
| 25 |
"dev_output": output,
|
| 26 |
}
|