Rahul-8799 commited on
Commit
a071b80
·
verified ·
1 Parent(s): 5a524c3

Update agents/project_manager_agent.py

Browse files
Files changed (1) hide show
  1. agents/project_manager_agent.py +1 -2
agents/project_manager_agent.py CHANGED
@@ -19,10 +19,9 @@ def run(state: dict) -> dict:
19
  input_ids = tokenizer(prompt, return_tensors="pt").input_ids.to(model.device)
20
  output_ids = model.generate(input_ids, max_new_tokens=3000)
21
  output = tokenizer.decode(output_ids[0], skip_special_tokens=True)
22
- ai_message = {"role": "assistant", "content": output}
23
 
24
  return {
25
- "messages": [ai_message],
26
  "chat_log": state["chat_log"] + [{"role": "Project Manager", "content": output}],
27
  "proj_output": output,
28
  }
 
19
  input_ids = tokenizer(prompt, return_tensors="pt").input_ids.to(model.device)
20
  output_ids = model.generate(input_ids, max_new_tokens=3000)
21
  output = tokenizer.decode(output_ids[0], skip_special_tokens=True)
 
22
 
23
  return {
24
+ "messages": [AIMessage(content=output)],
25
  "chat_log": state["chat_log"] + [{"role": "Project Manager", "content": output}],
26
  "proj_output": output,
27
  }