CLI¶
pip install vegaml installs the vegaml command. State in, decide()'s JSON out.
vegaml "I was billed twice, refund me or I cancel." \
--choice "team=Which team handles this?=billing,technical,sales" \
--boolean "churn=Does the customer threaten to leave?"
- Typed flags build questions without JSON:
--boolean "id=instructions",--choice "id=instructions=a,b,c",--score "id=instructions=low,mid,high"(the score's comma list is its ordered level criteria). Each flag repeats. --questions '{"id": {...}}'or--questions @file.jsonpasses full question objects, with criteria definitions and all; it combines with the flags, and a duplicate id is an error.- The state is the positional argument;
-, or piping with no argument, reads stdin. --modelpicks the checkpoint (nothing for the 0.8B,4b, a Hub id or a path);--mode,--alpha,--views,--device,--max-lenpass through.--prettyindents; the default is one compact JSON object, ready forjq.
Batches¶
Each input line is {"state": ..., "questions": {...}?}; a line without questions uses the
flags'. The checkpoint loads once, before the first line, which is the point: a thousand
states pay for one load. Output is one result object per line, in input order.