Lzy01241010 Claude Opus 4.7 commited on
Commit
bca1f37
Β·
1 Parent(s): 90721a6

ui: capitalize memory strategy labels; cap max_turns at 50

Browse files

- Memory Strategy radio: Condenser (default) / Vanilla / Discard-all / Hide-tool-result
- Help text bolded names match
- Max Turns slider upper bound 100 -> 50

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -1914,26 +1914,26 @@ with gr.Blocks(
1914
  memory_strategy = gr.Radio(
1915
  label="Memory Strategy",
1916
  choices=[
1917
- ("condenser (default)", "condenser"),
1918
- ("vanilla", "vanilla"),
1919
- ("discard-all", "discard_all"),
1920
- ("hide-tool-result", "hide_tool_result"),
1921
  ],
1922
  value="condenser",
1923
  elem_id="quest-memory-strategy",
1924
  )
1925
  gr.HTML(
1926
  '<div class="memory-help">'
1927
- '<b>condenser</b> (default) β€” when context grows large, a State Summarizer LLM compresses earlier turns into a structured JSON of trusted/untrusted/uncertain claims, visited sources, and prior search queries; the agent continues with that compact state.<br>'
1928
- '<b>vanilla</b> β€” memory management disabled; the full conversation history is kept.<br>'
1929
- '<b>discard-all</b> β€” when context grows large, the entire message history is reset, restarting the agent from the original question with no accumulated context.<br>'
1930
- '<b>hide-tool-result</b> β€” when context grows large, older tool responses are pruned; only the most recent tool result is kept.'
1931
  '</div>'
1932
  )
1933
  max_turns = gr.Slider(
1934
  label="Max Turns",
1935
  minimum=2,
1936
- maximum=100,
1937
  value=6,
1938
  step=1,
1939
  elem_id="quest-max-turns",
 
1914
  memory_strategy = gr.Radio(
1915
  label="Memory Strategy",
1916
  choices=[
1917
+ ("Condenser (default)", "condenser"),
1918
+ ("Vanilla", "vanilla"),
1919
+ ("Discard-all", "discard_all"),
1920
+ ("Hide-tool-result", "hide_tool_result"),
1921
  ],
1922
  value="condenser",
1923
  elem_id="quest-memory-strategy",
1924
  )
1925
  gr.HTML(
1926
  '<div class="memory-help">'
1927
+ '<b>Condenser</b> (default) β€” when context grows large, a State Summarizer LLM compresses earlier turns into a structured JSON of trusted/untrusted/uncertain claims, visited sources, and prior search queries; the agent continues with that compact state.<br>'
1928
+ '<b>Vanilla</b> β€” memory management disabled; the full conversation history is kept.<br>'
1929
+ '<b>Discard-all</b> β€” when context grows large, the entire message history is reset, restarting the agent from the original question with no accumulated context.<br>'
1930
+ '<b>Hide-tool-result</b> β€” when context grows large, older tool responses are pruned; only the most recent tool result is kept.'
1931
  '</div>'
1932
  )
1933
  max_turns = gr.Slider(
1934
  label="Max Turns",
1935
  minimum=2,
1936
+ maximum=50,
1937
  value=6,
1938
  step=1,
1939
  elem_id="quest-max-turns",