From 538a5d926fa626a00cc3dc12c555f11f82867efd Mon Sep 17 00:00:00 2001 From: t Date: Mon, 22 Jun 2026 18:18:28 -0600 Subject: libpanto ponytail-audit simplifications --- libpanto/src/agent.zig | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'libpanto/src/agent.zig') 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 -- cgit v1.3