chore: import upstream snapshot with attribution
Validate YAML Workflows / Validate YAML Configuration Files (push) Waiting to run
Validate YAML Workflows / Validate YAML Configuration Files (push) Waiting to run
This commit is contained in:
Executable
+1
@@ -0,0 +1 @@
|
||||
"""Bootstrap helpers for runtime subsystems."""
|
||||
Executable
+28
@@ -0,0 +1,28 @@
|
||||
"""Ensure schema registry is populated with runtime-provided registrations."""
|
||||
|
||||
from importlib import import_module
|
||||
from typing import Iterable
|
||||
|
||||
_BOOTSTRAPPED = False
|
||||
|
||||
|
||||
def _modules_to_import() -> Iterable[str]:
|
||||
return (
|
||||
"runtime.node.builtin_nodes",
|
||||
"runtime.node.agent.memory.builtin_stores",
|
||||
"runtime.node.agent.thinking.builtin_thinking",
|
||||
"runtime.edge.conditions.builtin_types",
|
||||
"runtime.node.agent.providers.builtin_providers",
|
||||
)
|
||||
|
||||
|
||||
def ensure_schema_registry_populated() -> None:
|
||||
"""Import built-in runtime registration modules exactly once."""
|
||||
global _BOOTSTRAPPED
|
||||
if _BOOTSTRAPPED:
|
||||
return
|
||||
|
||||
for module_name in _modules_to_import():
|
||||
import_module(module_name)
|
||||
|
||||
_BOOTSTRAPPED = True
|
||||
Reference in New Issue
Block a user