1
0

[loop-cycle-2] fix: suppress confirmation tool WARNING spam (#79) (#89)

This commit is contained in:
2026-03-14 17:54:58 -04:00
parent 09fcf956ec
commit 74e426c63b
2 changed files with 39 additions and 1 deletions

View File

@@ -504,8 +504,11 @@ def create_full_toolkit(base_dir: str | Path | None = None):
toolkit = Toolkit(
name="full",
requires_confirmation_tools=list(DANGEROUS_TOOLS),
)
# Set requires_confirmation_tools AFTER construction (avoids agno WARNING
# about tools not yet registered) but BEFORE register() calls (so each
# Function gets requires_confirmation=True). Fixes #79.
toolkit.requires_confirmation_tools = list(DANGEROUS_TOOLS)
# Web search (optional — degrades gracefully if ddgs not installed)
if _DUCKDUCKGO_AVAILABLE: