GoogleCloudPlatform / genai-databases-retrieval-app

Apache License 2.0
214 stars 72 forks source link

fix(langchain_tools_demo): fix agent concurrency between restarts #194

Closed kurtisvg closed 9 months ago

kurtisvg commented 9 months ago

This fixes two edge cases:

  1. Where the user has a session uuid, but there is no agent associated with it (e.g. instance shut down/restarted)
  2. When an agent is reinitialized (such as reset) it preserves the existing memory in the agent's memory