fabricatio_webui.bridge
Thin async bridge callable from Rust via PyO3.
Provides an execute_workflow coroutine that the Rust service layer can
schedule on Python’s event loop, receiving events through a callback.
Functions
|
Execute a workflow and return the final context as a JSON string. |
Module Contents
- async fabricatio_webui.bridge.execute_workflow(workflow_json: str, event_callback: Callable[[str, str], Coroutine[Any, Any, None]]) str
Execute a workflow and return the final context as a JSON string.
- Parameters:
workflow_json – serialised workflow descriptor.
event_callback –
async def(event_type: str, payload_json: str)called with each lifecycle event.
- Returns:
JSON-encoded result context dictionary.