From 6b78e45e0f1c7c604a243fc3e1a7f3e6bf173791 Mon Sep 17 00:00:00 2001 From: goulustis Date: Mon, 13 Oct 2025 19:20:54 +0800 Subject: [PATCH] tool config --- lang_agent/config.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lang_agent/config.py b/lang_agent/config.py index 233e01e..ee67142 100644 --- a/lang_agent/config.py +++ b/lang_agent/config.py @@ -56,6 +56,11 @@ class InstantiateConfig(PrintableConfig): +@dataclass +class ToolConfig(InstantiateConfig): + use_tool:bool = True + """specify to use tool or not""" + def load_tyro_conf(filename: str, inp_conf = None) -> InstantiateConfig: """load and overwrite config from file""" config = yaml.load(Path(filename).read_text(), Loader=yaml.Loader)