API Key
⚖️ Jev
Get a typed decision about some text, as yes or no, one option from a set, or a score.
What you can do
- Ask a yes/no question and get the answer with its probability, and an exit code for scripts
- Pick one option from a set you describe
- Place the input on a scale you describe, such as how severe a bug is
Setup
Create a key at console.typesafe.ai, under Settings, then Keys. Then:
agentio jev profile add
agentio asks for the key and checks it with one short question.
Good to know
- The input to evaluate comes from stdin, or from
--state. Input that is JSON is sent as JSON. yesnoexits with 0 for yes, 1 for no, and 2 or more for an error.--thresholdsets the probability of yes at which the answer is yes (default 0.5).--jsonprints the answer with the model and usage.
Command reference
-
agentio jev yesno <question>Ask a yes/no question. Exit code 0 is yes, 1 is no, 2 or more is an error. Text output is the decision, then the probability of yes: yes 0.97 or no 0.12
--threshold <p>--state <text>--model <model>--profile <name>--json -
agentio jev choice <question>Pick one option from a set. Text output is the chosen key, then the confidence: billing 0.91. Give at least 2 --option key="description", up to 255
--option <key=description>--state <text>--model <model>--profile <name>--json -
agentio jev score <question>Place the input on a ranked scale. Give 2 to 10 --level values, lowest first. Text output is the score, then its confidence: 1.3 (confidence 0.54). The score is a position on the 0-based scale, so it can fall between levels
--level <description>--state <text>--model <model>--profile <name>--json
Related changelog entries
No changelog entries reference this service yet.