loader
loader
¶
Template loader — dynamically construct BaseTool from TOML definitions.
Classes¶
ToolTemplate
¶
Bases: BaseTool
A tool dynamically constructed from a TOML template definition.
Source code in src/openjarvis/tools/templates/loader.py
Functions¶
load_template
¶
load_template(path: str | Path) -> ToolTemplate
Load a single tool template from a TOML file.
Source code in src/openjarvis/tools/templates/loader.py
discover_templates
¶
discover_templates(directory: Optional[str | Path] = None) -> List[ToolTemplate]
Discover all TOML templates in a directory.