llama-stack-mirror/llama_stack/distribution/ui/page
Michael Clifford fe9b5ef08b
fix: tools page on playground resets agent after every interaction (#2044)
# What does this PR do?

This PR updates how the `AgentType` gets set using the radio button on
the tools page of the playground. This change is needed due to the fact
with its current implementation, the chat interface will resets after
every input, preventing users from having a multi-turn conversation with
the agent.

## Test Plan

Run the Playground without these changes:
```bash
streamlit run llama_stack/distribution/ui/app.py
```
Navigate to the tools page and attempt to have a multi-turn
conversation. You should see the conversation reset after asking a
second question.

Repeat the steps above with these changes and you will see that it works
as expected when asking the agent multiple questions.

Signed-off-by: Michael Clifford <mcliffor@redhat.com>
2025-04-28 23:13:27 +02:00
..
distribution fix: Fixed import errors for UI and playground (#1666) 2025-03-18 15:00:48 -07:00
evaluations fix: Fixed import errors for UI and playground (#1666) 2025-03-18 15:00:48 -07:00
playground fix: tools page on playground resets agent after every interaction (#2044) 2025-04-28 23:13:27 +02:00
__init__.py [llama stack ui] add native eval & inspect distro & playground pages (#541) 2024-12-04 09:47:09 -08:00