Skip to content

0.3.0: decide(), a decision model's answers (Experts 1.2) - #3

Merged
guernica0131 merged 1 commit into
mainfrom
feat/decide
Nov 20, 2026
Merged

guernica0131 merged 1 commit into
mainfrom
feat/decide

Conversation

@guernica0131

Copy link
Copy Markdown
Contributor

ExpertsClient.decide() and AsyncExpertsClient.decide(): POST /api/v1/llm/decide, from agentic-1.2 §13ag (choice 7).

decision = experts.decide(state, {"kind": {"type": "choice", "instructions": "...", "criteria": {...}}})
decision["kind"].choice, decision["kind"].probability
  • Typed answers: DecisionAnswer carries the choice, probability, probabilities, confidence, noul, score and legend. Decision carries the model, the backend and the tokens.
  • probability is the pick's own probability. It is kept apart from Ollama's confidence, which measures how spread the answer is. The docs say to set thresholds on probability; M9b's eval showed confidence misses.
  • Retries: a decision changes nothing, so a 5xx is retried like a read. That covers the model still downloading.
  • Server clients only. The gateway refuses a browser session.
  • README: a Decisions section.
  • Spec: spec/openapi.json is the platform's, regenerated for 1.2 (experts-knowledge PR).
  • Version: 0.3.0, as §13ag planned.

Checks: 106 pass (decide, and sync/async parity of signature, request and answer); ruff, mypy and ruff-format are clean on the touched sources. Live: through dev's gateway, sales at 0.67 in 233 ms (tev1:0.8b), with a session token.

Publishing is the v0.3.0 tag, after merge.

ExpertsClient.decide() and AsyncExpertsClient.decide() post
/api/v1/llm/decide and read each question's answer by name: a choice's pick
and its own probability (apart from the model's confidence, which measures
spread), a noul's yes, a score with its legend. The spec is the platform's,
regenerated for 1.2.
@guernica0131
guernica0131 merged commit bca5519 into main Nov 20, 2026
5 checks passed
@guernica0131
guernica0131 deleted the feat/decide branch November 20, 2026 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant