I have setup the crew and as suggested and it works fine as well. The issue is that on Mem0 dashboard, the user name maps to the role
of the agent used in the crew as opposed to the user_id: john123
.
@crew
def crew(self) -> Crew:
return Crew(
agents=self.agents,
tasks=self.tasks,
process=Process.sequential,
memory=True,
# Short-term memory for current context using RAG
memory_config={
"provider": "mem0",
"config": {"user_id": "john123"},
"user_memory" : {} #Set user_memory explicitly to a dictionary, we are working on this issue.
},
verbose=True)