tool config
This commit is contained in:
@@ -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:
|
def load_tyro_conf(filename: str, inp_conf = None) -> InstantiateConfig:
|
||||||
"""load and overwrite config from file"""
|
"""load and overwrite config from file"""
|
||||||
config = yaml.load(Path(filename).read_text(), Loader=yaml.Loader)
|
config = yaml.load(Path(filename).read_text(), Loader=yaml.Loader)
|
||||||
|
|||||||
Reference in New Issue
Block a user