summaryrefslogtreecommitdiff
path: root/libpanto/src/agent.zig
diff options
context:
space:
mode:
authort <t@tjp.lol>2026-06-22 18:18:28 -0600
committert <t@tjp.lol>2026-06-23 09:34:55 -0600
commit538a5d926fa626a00cc3dc12c555f11f82867efd (patch)
tree7ea3b84ea5086d67973d0b427ec7c382eb635e50 /libpanto/src/agent.zig
parenta417727810cc6722b3c82e3c9e9b46982ef40a08 (diff)
libpanto ponytail-audit simplifications
Diffstat (limited to 'libpanto/src/agent.zig')
-rw-r--r--libpanto/src/agent.zig7
1 files changed, 1 insertions, 6 deletions
diff --git a/libpanto/src/agent.zig b/libpanto/src/agent.zig
index e689924..faf0a4a 100644
--- a/libpanto/src/agent.zig
+++ b/libpanto/src/agent.zig
@@ -443,13 +443,8 @@ pub const Agent = struct {
self._persisted_through = end;
}
- /// Persist the messages a turn produced. When the turn auto-compacted,
- /// message indices shifted (the conversation was rewritten to
fn hasToolUseBlock(msg: conversation.Message) bool {
- for (msg.content.items) |block| {
- if (block == .ToolUse) return true;
- }
- return false;
+ return toolUseCount(msg) > 0;
}
/// Open one provider response with the configured retry policy, pushing