Przejdź do treści
Biblioteka skilli
AI i agenci · Integracja z narzędziem

add-decisions

/add-decisions

Dodaje klasyfikację, ocenę i kierowanie oparte na prawdopodobieństwie w Inworld Decisions, z progami pewności.

Repozytorium
plugin ↗
Licencja
MIT
Ostatnia zmiana repozytorium
05.11.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
3
Przestarzałość

Brak sygnałów. Repozytorium zmienione 05.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Dodaje klasyfikację, ocenę i kierowanie oparte na prawdopodobieństwie w Inworld Decisions, z progami pewności.

Argumenty

/add-decisions [the judgment to automate, or a file]
Oryginalny opis (EN)

Add probability-based classification, scoring and routing with Inworld Decisions. Use for model judgments that need confidence thresholds.

Jak działa

  1. Step 1 — Find the judgment calls
  2. Step 2 — Pick the question type
  3. Step 3 — Build the state and questions
  4. Step 4 — Probe before writing code
  5. Step 5 — Write it into the app
Sekcje z nagłówków SKILL.md, w oryginale · 88 linii, 632 słów
Podgląd SKILL.md
---
name: add-decisions
description: "Add probability-based classification, scoring and routing with Inworld Decisions. Use for model judgments that need confidence thresholds."
argument-hint: "[the judgment to automate, or a file]"
---

# Add decisions

Replace fragile LLM judgment calls in the user's code (classify this, is this urgent, which team, does this break policy, how relevant is this) with Inworld's Decisions API, which returns probabilities instead of text: yes/no (noul), one of several options (choice), or a level on a scale (score). Use when code parses yes/no or a label out of an LLM reply, routes or gates on a model's opinion, or the user wants classification, routing, moderation-style checks or scoring with a confidence they can threshold.

Before calling tools, follow [installed tool availability](../connect/references/tool-availability.md).
Use the single Inworld connection and its actual schemas. If the host has
disabled a tool or loaded an older package, follow the availability guidance;
missing tools do not imply a missing API key.


The Decisions API (`POST https://api.inworld.ai/alpha/decisions`, preview,
model `typesafe/jev-latest`) answers named, typed questions about a `state` with
probabilities. The model judges; the user's code decides what to do with the
numbers. The documented `typesafe/jev-latest` example bills input tokens; check current catalog rates for the selected decision model. It's a preview: the path and shape may
change, so keep the call in one module.

## Step 1 — Find the judgment calls

Look for LLM calls whose output is parsed into a branch: "answer yes or no",
"respond with one of", JSON labels, regex on a model reply, sentiment or
intent prompts, `if "urgent" in reply`. Also look for hand-written keyword
classifiers that miss cases. Each is a candidate when the answer is bounded and
needs judgment rather than computation.

Leave alone anything that needs generated text, exact computation or a lookup.

Before choosing a model, check the current [Decisions catalog guidance](https://docs.inworld.ai/router/decisions). The model below is a documented example, not a universal default; a chat model with JSON output is not interchangeable with a decision model.

## Step 2 — Pick the question type

| Need | Type | Returns |
|---|---|---|
| Does a condition hold? | `noul` | `noul`: probability of yes |
| Which one of a fixed set? | `choice` with `criteria: { option: "what it covers" }` | `choice`, `probabilities`, `confidence` |
| How much, on ordered levels? | `score` with ordered `criteria` | `score`, `probabilities`, `confidence` |

Several questions can go in one request; they're answered independently.

## Step 3 — Build the state and questions

- `state`: only what the questions need, in named fields (the message, the
  customer's plan, the policy text). Filter and fetch in code first.
- `instructions`: the judgment in one or two sentences, including what does and
  doesn't count.
- `criteria`: clear, non-overlapping descriptions for each option or level.

## Step 4 — Probe before writing code

Call `ask_decision` with real examples: clear cases, an ambiguous one, a
no-match one. Read the probabilities with the user and agree thresholds
(e.g. escalate when `is_urgent >= 0.8`, ask for clarification when choice
`confidence < 0.6`).

## Step 5 — Write it into the app

One module with the request, named threshold constants next to it, and the
branch in code:

```ts
const URGENT = 0.8;

export async function triage(message: string) {
  const res = await fetch("https://api.inworld.ai/alpha/decisions", {
    method: "POST",
    headers: { Authorization: `Basic ${process.env.INWORLD_API_KEY}`, "Content-Type": "application/json" },
    body: JSON.stringify({
      model: "typesafe/jev-latest",
      state: { message },
      questions: {
        is_urgent: { type: "noul", instructions: "Does the customer need help today?" },
        team: {
          type: "choice",
          instructions: "Which team should handle this?",
          criteria: { billing: "Payments, invoices, refunds", technical: "Bugs, outages, integrations", sales: "Pricing, upgrades" },
        },
      },
    }),
  });
  if (!res.ok) throw new Error(`decisions ${res.status}`);
  const { answers } = await res.json();
  return { urgent: answers.is_urgent.noul >= URGENT, team: answers.team.choice, confidence: answers.team.confidence };
}
```

Keep a fallback for errors (the old path, or a safe default), and log the raw
probabilities so thresholds can be tuned later.
Pliki w paczce (2)
  • SKILL.md 4 KB
  • agents/openai.yaml 1 KB

Wersje

W bazie nie ma innych skilli o nazwie add-decisions.

Migawka bazy z 13.11.2026 · wersja paczki f55c4643c732 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 1 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100add-voice
    Dodaje naturalną mowę do jednej funkcji aplikacji przez Inworld TTS: wybiera głos, sprawdza jego styl i podłącza wyjście mowy.
  • 100add-streaming-tts
    Strumieniuje mowę Inworld do istniejącej aplikacji lub pętli agenta głosowego, tak by odtwarzanie zaczynało się przed końcem syntezy.
  • 100inworld
    Obsługuje Inworld TTS API: klonowanie głosu, znaczniki audio w stylu SSML, znaczniki czasu i dopasowanie timestampów wizemów.
  • 100decisions
    Obsługuje Zoom AI Services Decisions: predykaty typowane, ograniczoną klasyfikację, punktację porządkową, routing świadomy prawdopodobieństwa i porównanie obrazów oraz uwierzytelnianie x-api-key i wybór modelu standard lub pro.
  • 95decisions
    Pokazuje, jak używać modułu decyzji @agent-native/core do klasyfikacji i oceny, z progami dla poszczególnych dostawców.
  • 100fai-human-in-the-loop
    Wdraża procesy z człowiekiem w pętli dla decyzji AI: bramki zatwierdzania, progi pewności, eskalacja i ścieżki audytu.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.