You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while other variables can be overriden using the before_agent_starts hook. Chat history is not part of the agent prompt suffix anymore even if it is populated inside the default agent_input object (using stringify method instead of langchainify):
"chat_history": conversation_history_formatted_content, # TODOV2: take away
that value is not used and a comment says to take away in V2, why is that?
Imho chat_history should be considered at the same level as memories, tool outputs and other custom keys provided in the agent input. If a developer wants to override that using before_agent_starts hook should be able to do it for chat_history as well.
The text was updated successfully, but these errors were encountered:
Since the agents refactor, Memory Agent is forcing chat history to be inserted in the agent prompt:
core/core/cat/agents/memory_agent.py
Line 27 in f14f2c0
while other variables can be overriden using the
before_agent_starts
hook. Chat history is not part of the agent prompt suffix anymore even if it is populated inside the defaultagent_input
object (using stringify method instead of langchainify):core/core/cat/agents/main_agent.py
Line 127 in f14f2c0
that value is not used and a comment says to take away in V2, why is that?
Imho
chat_history
should be considered at the same level as memories, tool outputs and other custom keys provided in the agent input. If a developer wants to override that usingbefore_agent_starts
hook should be able to do it for chat_history as well.The text was updated successfully, but these errors were encountered: