feat: loader prompt & simplify YAML loading and update data loader specifications (#736)

* refactor: Simplify YAML loading and update data loader specifications

* docs: Add comment explaining FunctionLoader usage in tpl.py

* lint

* lint
This commit is contained in:
you-n-g
2025-04-01 22:36:25 +08:00
committed by GitHub
parent 67ee1a90bd
commit 3d6ae62ad5
4 changed files with 68 additions and 58 deletions
+6
View File
@@ -24,6 +24,12 @@ class TestAgentInfra(unittest.TestCase):
print(code)
def test_include(self):
parent = T("components.coder.data_science.raw_data_loader.prompts:spec.user.data_loader").r(latest_spec=None)
child = T("scenarios.data_science.share:component_spec.DataLoadSpec").r()
assert child in parent
print(parent)
if __name__ == "__main__":
unittest.main()