From afb493adf40dc6e3122ccbf6be5f88952c142d0c Mon Sep 17 00:00:00 2001 From: goulustis Date: Tue, 3 Mar 2026 15:29:40 +0800 Subject: [PATCH] update load --- lang_agent/pipeline.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lang_agent/pipeline.py b/lang_agent/pipeline.py index 6f3f1cc..3375a68 100644 --- a/lang_agent/pipeline.py +++ b/lang_agent/pipeline.py @@ -70,7 +70,11 @@ class PipelineConfig(LLMNodeConfig): def __post_init__(self): if self.config_f is not None: logger.info(f"loading config from {self.config_f}") - self.config = load_tyro_conf(self.config_f) + loaded_conf = load_tyro_conf(self.config_f)# NOTE: We are not merging with self , self) + if not hasattr(loaded_conf, "__dict__"): + raise TypeError(f"config_f {self.config_f} did not load into a config object") + # Apply loaded + self.__dict__.update(vars(loaded_conf)) super().__post_init__()