mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-03 01:03:59 +00:00
fix: tools page on playground resets agent after every interaction
Signed-off-by: Michael Clifford <mcliffor@redhat.com>
This commit is contained in:
parent
6cf6791de1
commit
fdb1109491
1 changed files with 7 additions and 3 deletions
|
@ -94,12 +94,16 @@ def tool_chat_page():
|
||||||
st.subheader("Agent Configurations")
|
st.subheader("Agent Configurations")
|
||||||
st.subheader("Agent Type")
|
st.subheader("Agent Type")
|
||||||
agent_type = st.radio(
|
agent_type = st.radio(
|
||||||
"Select Agent Type",
|
label="Select Agent Type",
|
||||||
[AgentType.REGULAR, AgentType.REACT],
|
options=["Regular", "ReAct"],
|
||||||
format_func=lambda x: x.value,
|
|
||||||
on_change=reset_agent,
|
on_change=reset_agent,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if agent_type == "ReAct":
|
||||||
|
agent_type = AgentType.REACT
|
||||||
|
else:
|
||||||
|
agent_type = AgentType.REGULAR
|
||||||
|
|
||||||
max_tokens = st.slider(
|
max_tokens = st.slider(
|
||||||
"Max Tokens",
|
"Max Tokens",
|
||||||
min_value=0,
|
min_value=0,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue