Skip to content

Commit c02a9b0

Browse files
committed
feat: update default MEMORY strategy with previous errors
1 parent 18e7341 commit c02a9b0

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/balatrollm/strategies/default/MEMORY.md.jinja

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Memory & Previous Actions
22

3+
## Previous Action Status
4+
{% if last_response_is_invalid %}
5+
**Your last response was invalid**: {{ last_response_is_invalid }}
6+
Please ensure your next response includes a proper tool call with valid function name and JSON arguments.
7+
{% endif %}
8+
9+
{% if last_tool_called_failed %}
10+
**Your last tool call failed**: {{ last_tool_called_failed }}
11+
The tool call was formatted correctly but execution failed. Please try a different approach or adjust your parameters.
12+
{% endif %}
13+
314
{% if responses %}
415
## Recent Decision History
516
{% for response in responses[-5:] -%}

0 commit comments

Comments
 (0)