> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-docs-3071-org-scoped-api-keys.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# startTurn

> Référence du SDK TypeScript

> **startTurn**(`opts?`): [`Turn`](../interfaces/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.

Défini dans : [src/genai/api.ts:54](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/genai/api.ts#L54)

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

<div id="opts">
  ### opts ?
</div>

[`TurnInit`](../interfaces/turninit) = `{}`

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

[`tour de conversation`](../interfaces/turn)

<div id="examples">
  ## Exemples
</div>

```ts twoslash theme={null}
// @noErrors
weave.startTurn();
```

```ts twoslash theme={null}
// @noErrors
weave.startTurn({
  agentId: 'research-bot-prod',
  agentName: 'research-bot',
  agentDescription: 'Looks up facts on Wikipedia.',
  agentVersion: '1.4.2',
  model: 'gpt-4o',
  userMessage: 'What is the weather in Tokyo?',
  systemInstructions: ['You are a helpful weather bot.'],
  startTime: new Date('2026-05-29T10:00:00.000Z'),
});
```
