Best practice for handling per-user chat history with DI in agent-based REST APIs #4930
Unanswered
ahmar-husain
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I’m working on an agent-based system where a REST endpoint invokes an AI agent, and subsequent requests for the same user need to be context-aware by leveraging stored conversation history.
Current Design
Challenge
What I’m Trying to Understand
Take a loot at my redis history provider and factory class below
RedisChatHistoryProvider.txt
ShipmentAgentFactory.txt
Additional Context (Current Invocation Pattern)
From my REST endpoint, this is how I’m currently invoking the agent:
Beta Was this translation helpful? Give feedback.
All reactions