We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ecfda97 + 3da541a commit 3c2422eCopy full SHA for 3c2422e
src/agentlab/agents/tool_use_agent/tool_use_agent.py
@@ -101,8 +101,10 @@ def flatten(self) -> list[MessageBuilder]:
101
messages.extend(group.messages)
102
# Mark all summarized messages for caching
103
if i == len(self.groups) - keep_last_n_obs:
104
- if not isinstance(messages[i], ToolCalls):
105
- messages[i].mark_all_previous_msg_for_caching()
+ for msg in messages: # unset previous cache breakpoints
+ msg._cache_breakpoint = False
106
+ # set new cache breakpoint
107
+ messages[i].mark_all_previous_msg_for_caching()
108
return messages
109
110
def set_last_summary(self, summary: MessageBuilder):
0 commit comments