From 7ebb6c83f84dc2c5a9141619ed4543fc9ea50b40 Mon Sep 17 00:00:00 2001 From: Mohse Morad Date: Fri, 24 Jan 2025 12:33:32 +0200 Subject: [PATCH] Add cache --- holmes/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/holmes/config.py b/holmes/config.py index a860579..3a8cb06 100644 --- a/holmes/config.py +++ b/holmes/config.py @@ -1,3 +1,4 @@ +from functools import lru_cache import logging import os import yaml @@ -240,6 +241,7 @@ def create_console_tool_executor( ) return ToolExecutor(enabled_toolsets) + lru_cache() def create_tool_executor(self, dal: Optional[SupabaseDal]) -> ToolExecutor: """ Creates ToolExecutor for the server endpoints