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

# startTurn

> Référence du SDK TypeScript

```ts theme={"system"}
startTurn(opts?: TurnInit = {}): Turn
```

[GitHub source](https://github.com/wandb/weave/blob/7c9efdc9fe05ffcaf2430dd652ef9bc5b3ffdfaa/sdks/node/src/genai/api.ts#L54)

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

## Paramètres

**opts** `TurnInit = \{\}`

Voir [`TurnInit`](https://docs.coreweave.com/fr/products/wandb/weave/reference/typescript-sdk/interfaces/turninit).

## Renvoie

[`Turn`](https://docs.coreweave.com/fr/products/wandb/weave/reference/typescript-sdk/interfaces/turn)

## Exemples

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

```ts twoslash theme={"system"}
// @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'),
});
```
