It is not possible to create a REPL for an existing, non-interactive CLI utility. What problem are you looking to solve? It's possible I can provide an alternative solution.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence