Repository navigation
feat: add conversation history summarization - #24
lithikaneelakandan56-ctrl wants to merge 5 commits into
Conversation
|
@lithikaneelakandan56-ctrl Please resolve merge conflicts and lint issues |
|
I checked the lint failure against the current |
|
@lithikaneelakandan56-ctrl I think you forgot to push the commit? |
|
Thanks! I had pushed the commit just now. The latest commit is c574d36 (chore: fix existing ruff lint errors) and it has been pushed to the PR branch. Could you please check the latest commit? |
|
Please rebase your branch with main to resolve the merge conflicts |
c574d36 to
9eeefb1
Compare
9eeefb1 to
b5db187
Compare
Description
This PR integrates the existing conversation summarization functionality into the agent workflow.
When the conversation history exceeds the configured
MAX_TOKENS_HISTORYlimit, the existingsummarize_conversation()function is triggered. The resulting summary is stored in the agent state and included in the generated prompt, allowing the agent to continue working with a summarized conversation history.Fixes #2
Type of Change
Changes Made
MAX_TOKENS_HISTORY.summarize_conversation()function when the history exceeds the configured limit.How Has This Been Tested?
Checklist
src/config.py(if applicable)@tooldecorator fromsrc/core/tools.pyScreenshots / Logs (if applicable)
The assistant was successfully run after the changes. A controlled verification also confirmed that the summarization path is triggered when the conversation history exceeds
MAX_TOKENS_HISTORY.