INNER CODE UNIT · Python

_handle_play_check

ohdearquant/lionagi · lionagi/cli/main.py:92

def _handle_play_check(argv: list[str]) -> int:
    """`li play check <name>` — ADR-0064 D3 pre-flight artifact-contract validation; does not fire the playbook."""
    if not argv or argv[0].startswith("-"):
        print("Usage: li play check <name>")
        return 1
    name = argv[0]

    from lionagi.cli.orchestrate import _load_flow_spec, _resolve_playbook_path
    from lionagi.state.artifact_verifier import (
        ArtifactPathError,
        resolve_artifact_contract,
        warn_unknown_artifact_keys,
    )

    path, err = _resolve_playbook_path(name)
    if err is not None:
        log_error(err)
        return 1

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…