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, JSsarvamai@>=1.1.15. Older versions have noclient.decisions(PythonAttributeError, JSundefined). Checkpip show sarvamai/npm ls sarvamaifirst.
[!IMPORTANT] Endpoint:
POST https://api.sarvam.ai/v2/systemone— NOT/v1/chat/completions. Auth:api-subscription-keyheader;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 |