mirror of
https://github.com/mark3labs/kit.git
synced 2026-06-14 03:30:26 +00:00
996b15c9b9
Tool blocking via OnToolCall and SetActiveTools returned both a ToolResponse (IsError=true) and a Go error. Fantasy treats a non-nil Go error from tool.Run() as a critical failure, aborting the agent loop without delivering the tool result to the LLM. The model never saw the block reason and would retry or hallucinate. - Return nil error for blocked tools (OnToolCall Block=true) - Return nil error for disabled tools (SetActiveTools) - Return nil error for extension tool execution failures - Update tests to assert nil error (IsError response conveys the error) Fixes #20