File tree Expand file tree Collapse file tree
src/balatrollm/strategies/default Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 %}
1715Based 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
2521This 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 %}
You can’t perform that action at this time.
0 commit comments