Fix type-checker issue by adding type ignore comment for cache read in ToolUsage class

This commit is contained in:
Lorenze Jay
2025-03-31 10:01:02 -07:00
parent a02f637155
commit 48b10600d3

View File

@@ -169,12 +169,11 @@ class ToolUsage:
started_at = time.time()
from_cache = False
result = None
if self.tools_handler and self.tools_handler.cache:
result = self.tools_handler.cache.read(
tool=calling.tool_name, input=calling.arguments
)
) # type: ignore
from_cache = result is not None
available_tool = next(