Update agent.py

This commit is contained in:
maglore9900 2024-10-04 15:32:26 -04:00
parent a213f30084
commit 42960c66b7

View File

@ -211,8 +211,9 @@ class Agent:
agent_out = answer.get('agent_out') agent_out = answer.get('agent_out')
output_value = agent_out.return_values.get('output', None) output_value = agent_out.return_values.get('output', None)
max = self.llm.invoke(self.char_prompt.format(query=output_value)) max = self.llm.invoke(self.char_prompt.format(query=output_value))
# print(f"max: {max.content}")
return {"agent_out": max.content} return {"agent_out": max.content}
# for chunk in self.llm.stream(self.char_prompt.format(query=output_value)):
# yield(chunk)
async def rag_final_answer(self, state: list): async def rag_final_answer(self, state: list):
print("> rag final_answer") print("> rag final_answer")