Python
from tacet import Tacet
client = Tacet() # reads TACET_API_KEY
result = client.decide(
model="tacet-alpha",
state="The payment failed. The login works.",
questions={
"route": {
"type": "choice",
"instructions": "Which team handles the problem?",
"criteria": {"payments": "Payment failures", "account": "Login access"},
}
},
)
print(result.answers["route"].top)import Tacet from "@tacet/sdk";
const client = new Tacet(); // reads TACET_API_KEY
const result = await client.decide({
model: "tacet-alpha",
state: "The payment failed. The login works.",
questions: {
route: {
type: "choice",
instructions: "Which team handles the problem?",
criteria: { payments: "Payment failures", account: "Login access" },
},
},
});
console.log(result.answers.route.top);
curl https://api.tacetai.com/v1/decide \
-H "Authorization: Bearer $TACET_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "tacet-alpha",
"state": "The payment failed. The login works.",
"questions": {
"route": {
"type": "choice",
"instructions": "Which team handles the problem?",
"criteria": {"payments": "Payment failures", "account": "Login access"}
}
}
}'
{
"id": "dec_8f2c1a",
"model": "tacet-alpha",
"answers": {
"route": {
"type": "choice",
"probs": {
"payments": 0.97,
"account": 0.03
},
"top": "payments",
"confidence": 0.97
}
},
"usage": {
"input_tokens": 61
}
}{
"code": "invalid_question",
"message": "<string>"
}{
"code": "invalid_question",
"message": "<string>"
}{
"code": "invalid_question",
"message": "<string>"
}{
"code": "invalid_question",
"message": "<string>"
}{
"code": "invalid_question",
"message": "<string>"
}Decide
Make a decision
Answer one or more typed questions about a single state.
POST
/
v1
/
decide
Python
from tacet import Tacet
client = Tacet() # reads TACET_API_KEY
result = client.decide(
model="tacet-alpha",
state="The payment failed. The login works.",
questions={
"route": {
"type": "choice",
"instructions": "Which team handles the problem?",
"criteria": {"payments": "Payment failures", "account": "Login access"},
}
},
)
print(result.answers["route"].top)import Tacet from "@tacet/sdk";
const client = new Tacet(); // reads TACET_API_KEY
const result = await client.decide({
model: "tacet-alpha",
state: "The payment failed. The login works.",
questions: {
route: {
type: "choice",
instructions: "Which team handles the problem?",
criteria: { payments: "Payment failures", account: "Login access" },
},
},
});
console.log(result.answers.route.top);
curl https://api.tacetai.com/v1/decide \
-H "Authorization: Bearer $TACET_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "tacet-alpha",
"state": "The payment failed. The login works.",
"questions": {
"route": {
"type": "choice",
"instructions": "Which team handles the problem?",
"criteria": {"payments": "Payment failures", "account": "Login access"}
}
}
}'
{
"id": "dec_8f2c1a",
"model": "tacet-alpha",
"answers": {
"route": {
"type": "choice",
"probs": {
"payments": 0.97,
"account": 0.03
},
"top": "payments",
"confidence": 0.97
}
},
"usage": {
"input_tokens": 61
}
}{
"code": "invalid_question",
"message": "<string>"
}{
"code": "invalid_question",
"message": "<string>"
}{
"code": "invalid_question",
"message": "<string>"
}{
"code": "invalid_question",
"message": "<string>"
}{
"code": "invalid_question",
"message": "<string>"
}Authorizations
Create a key in the Tacet console. Keep it on your server; never ship it in a browser or app.
Body
application/json
Model id. Use tacet-alpha for the latest, or a dated id such as tacet-alpha-2026-10 to pin it.
Example:
"tacet-alpha"
What the model should look at. Objects are sent as JSON text.
Map of your question ids to question objects.
Show child attributes
Show child attributes