When using the Postgres Chat Memory with AI Agent Nodes I’m not able to add any additional_kwargs, tool_calls, or response_metadata although these fields are added with every record to the database (empty though).
It would really help to have these information (especially timestamps) for further evaluation of chats. My current workaround leaves the Chat Memory out of the AI Agent Node and reads/writes from/to Chat Memory manually before and after the call, but that’s a lot of overhead to maintain if I want to do that with all sub-workflows using other agents. Just adding Postgres Chat Memory to the Agent Node would facilitate this process a lot.
Ur update the last row in the table where type is ai(not human) , with the IntermediateSteps added in the content message with extra details like timestampor whatever you want.
I know that is not perfect, but is a quite workaround.