# Smolagent - handle multiuser chat

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsmolagent-handle-multiuser-chat%2F148423%3E%5C
**Category:** Intermediate\
**Created:** [April 1, 2025, 2:48pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsmolagent-handle-multiuser-chat%2F148423 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fcsabakecskemeti)%5C
**Post date:** [April 1, 2025, 2:48pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsmolagent-handle-multiuser-chat%2F148423%2F1 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [April 1, 2025, 3:21pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fsmolagent-handle-multiuser-chat%2F148423%2F2 "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
