Support reset_agent_memory in GradioUI by JakeBx · Pull Request #1420 · huggingface/smolagents (original) (raw)

@JakeBx

Copy link Copy Markdown

Contributor

@JakeBx JakeBx commented

Jun 7, 2025

Changes to gradio_ui.py to enable the use of the memory reset functionality on instantiation of the dashboard.

Discussed in issue #703

@JakeBx

[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 albertvillanova linked an issue

Jun 18, 2025

that may beclosed by this pull request

SmolAgents AgentMemory is kept in Gradio global state and cannot be turned off.#703

Closed

@albertvillanova

[Fix style](/huggingface/smolagents/pull/1420/commits/aebe9e3a98d507cbbfa98504fbc02738f7ab6399 "Fix style")

[aebe9e3](/huggingface/smolagents/pull/1420/commits/aebe9e3a98d507cbbfa98504fbc02738f7ab6399)

@albertvillanova albertvillanova changed the titleenable gradio to be run with reset_agent_memory arg to allow memory r… Support reset_agent_memory in GradioUI

Jun 18, 2025

albertvillanova

albertvillanova approved these changes Jun 18, 2025

View reviewed changes

Copy link Copy Markdown

Member

@albertvillanova 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 albertvillanova merged commit 155fea9 into huggingface:main

Jun 18, 2025

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 }})