Add function results to conversation history after we do an action
This commit is contained in:
5
main.py
5
main.py
@@ -694,6 +694,11 @@ def evaluate(user_input, conversation_history = [],re_evaluate=False, agent_acti
|
||||
conversation_history.extend(responses)
|
||||
return conversation_history
|
||||
|
||||
# unwrap the list of responses
|
||||
conversation_history.append(responses[-1])
|
||||
|
||||
#responses = converse(responses)
|
||||
|
||||
# TODO: this needs to be optimized
|
||||
responses = analyze(responses, prefix=f"You are an AI assistant. Return an appropriate answer to the user input '{user_input}' given the context below and summarizing the actions taken\n")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user