Skip to content

decide 0.3.0

Choose a tag to compare

@vsekhar vsekhar released this 24 Sep 05:21
· 22 commits to main since this release

Question files, named questions, and richer plain output.

Question files

  • --questions @file reads questions from a file, in the flag's place. It repeats and mixes with questions on the line.
  • A text file mimics the command line: shell-like quoting and # comments. It holds questions and their flags only.
  • A JSON file (one that starts with {) names questions, describes options and levels with summary, not_for, examples, and signals, and gives structured instructions with rules. A fault names the file and the JSON path.

Questions and output

  • --name names a question. A named question prints as name=answer, and the name is its key in --json.
  • --json prints one JSON object keyed by question, with each answer's kind, confidence, and probabilities.
  • --stats adds a question's confidence, probability, and a rating's score to its line. --distribution adds every option, level, or side with its probability. Fields are tab-separated, values in a field space-separated.
  • Several --context name=... flags compose one JSON object the questions can refer to by name.
  • --model and --api-key on the command line win over every setting for one run.