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>
app.py
CHANGED
|
@@ -1914,26 +1914,26 @@ with gr.Blocks(
|
|
| 1914 |
memory_strategy = gr.Radio(
|
| 1915 |
label="Memory Strategy",
|
| 1916 |
choices=[
|
| 1917 |
-
("
|
| 1918 |
-
("
|
| 1919 |
-
("
|
| 1920 |
-
("
|
| 1921 |
],
|
| 1922 |
value="condenser",
|
| 1923 |
elem_id="quest-memory-strategy",
|
| 1924 |
)
|
| 1925 |
gr.HTML(
|
| 1926 |
'<div class="memory-help">'
|
| 1927 |
-
'<b>
|
| 1928 |
-
'<b>
|
| 1929 |
-
'<b>
|
| 1930 |
-
'<b>
|
| 1931 |
'</div>'
|
| 1932 |
)
|
| 1933 |
max_turns = gr.Slider(
|
| 1934 |
label="Max Turns",
|
| 1935 |
minimum=2,
|
| 1936 |
-
maximum=
|
| 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",
|