Add client-managed chat history to RAO interactions#27
Closed
carlesonielfa wants to merge 12 commits into
Closed
Conversation
Harden GitHub workflows to satisfy zizmor security checks
Update dependency vue-router to v5
…monorepo Update vue-language-tools monorepo to v3
|
This pull request has been linked to Shortcut Story #14897: Add chat history parameter in interaction. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Allows clients to supply the full conversation history on each request via a new
chat_historyfield, enabling ephemeral sessions where the client owns conversation state rather than relying on server-side session storage.InteractionRequestandStartInteractiongain achat_history: Optional[List[HistoryQuestionAnswer]]field (default None, backward compatible). If it is supplied, even as an empty list, it overrides any server-side memoryQuestionMemorystores the client history and short-circuitscontext_history()andget_chat_history()to return it when set, overriding any server-side session history_qa_list_to_context_string/_qa_list_to_chat_messagesmodule-level helpers to eliminate duplication across session memory classesSessionManager.activate()→start_question()→engine.main()[sc-14897]
How was this PR tested?
test_memory_chat_history.py)test_chat_history_workflow.py)