MCPcopy
hub / github.com/lightningpixel/modly / _run_workflow_run

Function _run_workflow_run

tools/modly-cli/agent.py:755–768  ·  view source on GitHub ↗
(
    args: argparse.Namespace,
    image_path: Path,
    *,
    base_url: str,
    model_id: str,
    params: dict[str, Any],
    wait: bool,
)

Source from the content-addressed store, hash-verified

753
754
755def _run_workflow_run(
756 args: argparse.Namespace,
757 image_path: Path,
758 *,
759 base_url: str,
760 model_id: str,
761 params: dict[str, Any],
762 wait: bool,
763) -> tuple[str, dict[str, Any], str | None]:
764 run_id, started = _start_workflow_run(args, image_path, base_url=base_url, model_id=model_id, params=params)
765 if not wait:
766 return run_id, started, None
767 status, rel_path = _poll_workflow_run(args, base_url=base_url, run_id=run_id)
768 return run_id, status, rel_path
769
770
771def cmd_workflow_run_start(args: argparse.Namespace) -> int:

Callers 2

cmd_workflow_run_startFunction · 0.85
_generate_oneFunction · 0.85

Calls 2

_start_workflow_runFunction · 0.85
_poll_workflow_runFunction · 0.85

Tested by

no test coverage detected