15 lines
442 B
Python
15 lines
442 B
Python
#!/usr/bin/env python3
|
|
"""CLI wrapper for deterministic intake classification."""
|
|
import json
|
|
import os
|
|
import sys
|
|
|
|
HERE = os.path.dirname(os.path.abspath(__file__))
|
|
sys.path.insert(0, HERE)
|
|
from orgos.planning.intake_classifier import classify_request # noqa: E402
|
|
|
|
|
|
if __name__ == "__main__":
|
|
text = " ".join(sys.argv[1:]).strip() or sys.stdin.read().strip()
|
|
print(json.dumps(classify_request(text), ensure_ascii=False, indent=2))
|