Make agent object completely separate from user
The agent should be essentially stateless. It should be just a collection of instructions, tools, prompts, memories, etc. Things that are constant and unchanging once the agent is initialized. Things like the user identity, the run context, the chat history, etc should be more associated with the user and the run rather than the agent.
0 条评论