Support reset_agent_memory in GradioUI by JakeBx · Pull Request #1420 · huggingface/smolagents (original) (raw)
Copy link Copy Markdown
Contributor
JakeBx commented
Changes to gradio_ui.py to enable the use of the memory reset functionality on instantiation of the dashboard.
Discussed in issue #703
[enable gradio to be run with reset_agent_memory arg to allow memory r…](/huggingface/smolagents/pull/1420/commits/41490ae891ce4c17d9a633d66dbdc23c1b0911ef "enable gradio to be run with reset_agent_memory arg to allow memory reset on task initiation.")
[41490ae](/huggingface/smolagents/pull/1420/commits/41490ae891ce4c17d9a633d66dbdc23c1b0911ef)
…eset on task initiation.
albertvillanova linked an issue
that may beclosed by this pull request
SmolAgents AgentMemory is kept in Gradio global state and cannot be turned off.#703
Closed
[Fix style](/huggingface/smolagents/pull/1420/commits/aebe9e3a98d507cbbfa98504fbc02738f7ab6399 "Fix style")
[aebe9e3](/huggingface/smolagents/pull/1420/commits/aebe9e3a98d507cbbfa98504fbc02738f7ab6399)
albertvillanova changed the title
enable gradio to be run with reset_agent_memory arg to allow memory r… Support reset_agent_memory in GradioUI
albertvillanova approved these changes Jun 18, 2025
Copy link Copy Markdown
Member
albertvillanova left a comment
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the enhancement!
albertvillanova merged commit 155fea9 into huggingface:main
3 checks passed
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
[ Show hidden characters]({{ revealButtonHref }})