Skip to content

Commit

Permalink
ensure prompt retrocompatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
pieroit committed Jul 24, 2024
1 parent 3240c7a commit fb69a94
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/cat/agents/main_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,15 @@ def format_agent_input(self, stray):
)

# format conversation history to be inserted in the prompt
# conversation_history_formatted_content = stray.stringify_chat_history()
# TODOV2: take away
conversation_history_formatted_content = stray.stringify_chat_history()

return BaseModelDict(**{
"input": stray.working_memory.user_message_json.text, # TODO: deprecate, since it is included in chat history
"episodic_memory": episodic_memory_formatted_content,
"declarative_memory": declarative_memory_formatted_content,
# "chat_history": conversation_history_formatted_content,
"tools_output": "",
"input": stray.working_memory.user_message_json.text, # TODOV2: take away
"chat_history": conversation_history_formatted_content, # TODOV2: take away
})

def agent_prompt_episodic_memories(
Expand Down

0 comments on commit fb69a94

Please sign in to comment.