INNER CODE UNIT · Python

cmd_systemone_decide

initial-d/ml-quant-trading · src/mlquant/cli/main.py:464

def cmd_systemone_decide(
    state_path: Path,
    questions_path: Path | None,
    output_path: Path | None,
) -> None:
    """Convert a research report into System-One-style typed decisions."""
    state = load_systemone_state(state_path)
    questions = (
        load_systemone_questions(questions_path)
        if questions_path is not None
        else None
    )
    payload = systemone_decide(state, questions=questions, source_path=state_path)
    if output_path is not None:
        save_systemone_json(payload, output_path)
        click.echo(f"wrote {output_path}")
    else:
        text = json.dumps(payload, indent=2, sort_keys=True) + "\n"

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…