← Deemwar decision model · All recipes
Pick-one among function names (function calling from natural language).
curl -s localhost:21118/v1/systemone -d '{"state": "I want my money back for order 88", "questions": {"tool": {"type": "choice", "instructions": "Which function should handle this request?", "criteria": {"refund_payment": "refund a charge", "create_invoice": "create a new invoice", "update_email": "change the billing email"}}}}' | jq -c .answers
Real answer (openjevx v0.4.0 8-bit model, CPU):
{"tool":{"action":{"act_probability":1},"answer_confidence":0.9484,"choice":"refund_payment","confidence":0.9484,"probabilities":{"create_invoice":0.0276,"refund_payment":0.9484,"update_email":0.024},"type":"choice"}}
jevx pick --profile openjevx --no-context "Which function should handle this request?" refund_payment="refund a charge" create_invoice="create a new invoice" update_email="change the billing email" --in "I want my money back for order 88"
Real output:
refund_payment 0.95
Call the chosen function; extract its arguments (order 88) in code.
Right: refund_payment 0.95.