prism

Installation
SKILL.md

Sarvam Prism — Decisions API

Need generated text, summaries or tool calling? → chat. Need to classify or split a PDF/image file? → doc-ai (doc_ai.classify() / .split()).

SDK floor: Python sarvamai>=0.1.43, JS sarvamai@>=1.1.15. Older versions have no client.decisions (Python AttributeError, JS undefined). Check pip show sarvamai / npm ls sarvamai first.

[!IMPORTANT] Endpoint: POST https://api.sarvam.ai/v2/systemone — NOT /v1/chat/completions. Auth: api-subscription-key header; Authorization: Bearer <key> also works here.

What it does

You send a state (the input to decide on) and a map of typed questions. One call returns a probability for every option of every question. It generates no text, so there is nothing to parse and output tokens cost ₹0.

type Asks criteria Answer fields
noul Yes / no Optional {"true": "...", "false": "..."} noul (probability of yes)
choice Pick one Required object of option ID → description, 2–255 options choice, confidence, probabilities
score Rate on an ordered scale Required list of levels, lowest first, 2–10 levels score, confidence, legend, probabilities
Installs
14
Repository
sarvamai/skills
GitHub Stars
75
First Seen
Nov 12, 2026