> ## 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.

# init

> Référence du SDK TypeScript

```ts theme={"system"}
init(project: string, settings?: Partial<{…}>): Promise<WeaveClient>
```

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

Initialise le client Weave, requis pour le fonctionnement du traçage Weave.

## Paramètres

**project** `string` *required*

Le nom du projet W\&B (project ou entity/project). Si vous ne
spécifiez pas d’équipe CoreWeave Forge (par exemple, 'team/project'), votre entity par défaut est utilisé.
Pour trouver ou modifier votre entity par défaut, consultez les paramètres utilisateur à l’adresse
[https://docs.wandb.ai/platform/app/settings-page/user-settings#default-team](https://docs.wandb.ai/platform/app/settings-page/user-settings#default-team)

**settings** `Partial\<\{…\}\>`

(Facultatif) Paramètres de traçage Weave

Type complet : `Partial<{ attributes: Record<string, any>; genai: { batchOptions?: BufferConfig; spanProcessor?: "batch" | "simple" | SpanProcessor; }; printCallLink: boolean; useCallsComplete: boolean; useOTelV2: boolean; }>`

## Renvoie

`Promise`\<[`WeaveClient`](https://docs.coreweave.com/fr/products/wandb/weave/reference/typescript-sdk/interfaces/weaveclient)>

Une promesse résolue avec le client Weave initialisé.

## Exceptions

Si l’initialisation échoue
