MCPcopy Create free account
hub / github.com/agentforce314/clawcodex / execute_workflow

Function execute_workflow

src/workflow/sandbox.py:180–185  ·  view source on GitHub ↗

Compile + run the script, returning its top-level ``return`` value.

(source: str, primitives: Mapping[str, Any], args: Any)

Source from the content-addressed store, hash-verified

178
179
180async def execute_workflow(source: str, primitives: Mapping[str, Any], args: Any) -> Any:
181 """Compile + run the script, returning its top-level ``return`` value."""
182 code = compile_workflow(source)
183 namespace = build_namespace(primitives, args)
184 exec(code, namespace) # noqa: S102 — curated namespace; see module docstring
185 return await namespace[_WRAPPER_NAME]()

Calls 2

compile_workflowFunction · 0.85
build_namespaceFunction · 0.85