# Smolagent - handle multiuser chat

**URL:** <https://discuss.huggingface.co/t/smolagent-handle-multiuser-chat/148423>\
**Category:** Intermediate\
**Created:** [April 1, 2025, 2:48pm UTC](https://discuss.huggingface.co/t/smolagent-handle-multiuser-chat/148423 "2025-04-01T14:48:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![csabakecskemeti](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/csabakecskemeti/32/33832_2.png) [@csabakecskemeti](https://discuss.huggingface.co/u/csabakecskemeti)\
**Post date:** [April 1, 2025, 2:48pm UTC](https://discuss.huggingface.co/t/smolagent-handle-multiuser-chat/148423/1 "2025-04-01T14:48:32Z")

</div>

I’m wondering what the suggested way is to handle a multi-user chat/task session with Smolagents.

The agent has its own memory, so for a single user, I can control it by sending the proper ‘reset\_memory’ value. But how do I handle this with multiple concurrent users?

I guess I can return the agent’s memory, update it, and send it back, but this seems cumbersome. There must be a simpler way.

Any suggestions are welcome

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](https://discuss.huggingface.co/u/John6666)\
**Post date:** [April 1, 2025, 3:21pm UTC](https://discuss.huggingface.co/t/smolagent-handle-multiuser-chat/148423/2 "2025-04-01T15:21:40Z")

</div>

In the case of Gradio, it is customary to use the State component in this kind of situation, but perhaps the implementation of this in Smolagents has not yet been done.🤔

> **[Gradio Docs](https://www.gradio.app/docs/gradio/state)**
>
> Gradio docs for using
