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

# Turn Detector

> TypeScript API reference for the unified turn detector.

<Card title="Usage guide" icon="book" href="/plugins/turn-detection/namo" horizontal>
  Setup, environment variables, and Python/JavaScript/Go usage examples.
</Card>

## TurnDetector

End-of-turn detection through the ZeroRuntime inference gateway.

```ts theme={null}
import { TurnDetector } from '@zeroruntime/js-sdk/inference';  // same fields, through the gateway, no vendor key
```

### Options

<ParamField path="model" type="string" default="echo-large" />

<ParamField path="host" type="string | null" default="null" />

<ParamField path="timeout" type="number" default="2" />
