Skip to content

Commit 4493674

Browse files
committed
feat: update MEMORY.md.jinja with raw tool_calls
1 parent 6e1e9d5 commit 4493674

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

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

3-
{% if responses and responses[-5:] %}
3+
{% if responses %}
44
## Recent Decision History
55
{% for response in responses[-5:] -%}
66
{%- if response.choices and response.choices[0].message.tool_calls -%}
77
{%- set tool_call = response.choices[0].message.tool_calls[0] -%}
8-
{%- set args_json = tool_call.function.arguments -%}
9-
{%- set args = args_json | from_json -%}
10-
{%- if args.reasoning -%}
11-
**{{ loop.index }}. {{ tool_call.function.name }}**: {{ args.reasoning }}
8+
**{{ loop.index }}.** {{ tool_call.function }}
129
{% endif -%}
13-
{%- endif -%}
1410
{% endfor %}
11+
{% endif %}
1512

1613
## Strategic Context
14+
{% if responses %}
1715
Based on your recent actions, consider:
1816
- How your decisions are building towards a cohesive strategy
1917
- Whether your current approach is working or needs adjustment
2018
- What patterns are emerging in your play style
2119
- How to optimize your next decision based on what you've learned
22-
2320
{% else %}
24-
## Strategic Context
2521
This is the beginning of the game. Focus on:
2622
- Establishing a clear strategic direction
2723
- Making decisions that set up long-term synergies
2824
- Building a foundation for scaling in later rounds
2925
- Considering the overall arc of your run strategy
30-
{% endif %}
26+
{% endif %}

0 commit comments

Comments
 (0)