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

# startTurn

> Référence du SDK TypeScript

<div id="startturn">
  # startTurn
</div>

▸ **startTurn**(`opts?`): [`Turn`](../classes/turn)

Démarre un nouveau tour de conversation. Si une Conversation est active, le tour hérite de son
`conversationId` ; sinon, le tour n’a pas d’identifiant de conversation.

<div id="parameters">
  #### Paramètres
</div>

| Nom    | Type                                 |
| :----- | :----------------------------------- |
| `opts` | [`TurnInit`](../interfaces/turninit) |

<div id="returns">
  #### Renvoie
</div>

[`Turn`](../classes/turn)

`Exemple`

```ts twoslash theme={null}
// @noErrors
weave.startTurn({agentName: 'research-bot'});
```

`Exemple`

```ts twoslash theme={null}
// @noErrors
weave.startTurn({
  agentName: 'research-bot',
  startTime: new Date('2026-05-29T10:00:00.000Z'),
});
```

<div id="defined-in">
  #### Défini dans
</div>

[src/genai/api.ts:48](https://github.com/wandb/weave/blob/9591aba8a5e77309ee0858e5ba94d31c1bd7e404/sdks/node/src/genai/api.ts#L48)

***
