> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tacetai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SDKs

> Official libraries for Python and TypeScript. Anything else can call the HTTP API directly.

## Python

```bash theme={null}
pip install tacet
```

```python theme={null}
from tacet import Tacet, AsyncTacet

client = Tacet(timeout=2.0, max_retries=2)

# In async code
aclient = AsyncTacet()
result = await aclient.decide(model="tacet-alpha", state=state, questions=questions)
```

## TypeScript

```bash theme={null}
npm install @tacet/sdk
```

```ts theme={null}
import Tacet from "@tacet/sdk";

const client = new Tacet(); // reads TACET_API_KEY

const result = await client.decide({
  model: "tacet-alpha",
  state: "My card was declined at checkout, but I can still log in.",
  questions: {
    route: {
      type: "choice",
      instructions: "Which team should handle this?",
      criteria: { payments: "Card and billing problems", account: "Login and access" },
    },
  },
});

const route = result.answers.route;
console.log(route.top, route.confidence);
```

## HTTP

Send a POST request to `https://api.tacetai.com/v1/decide` with your key as a bearer token. The [API reference](/api-reference/introduction) has the full request and response format.

<Warning>
  Keep your key on your server. Never put it in a browser, mobile app, or public repository.
</Warning>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.