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

# init

> TypeScript SDK リファレンス

> **init**(`project`, `settings?`): `Promise`\<[`WeaveClient`](../interfaces/weaveclient)>

Weave クライアントを初期化します。Weave トレースを機能させるには、このクライアントが必要です。

定義場所: [src/clientApi.ts:87](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/clientApi.ts#L87)

<div id="parameters">
  ## パラメーター
</div>

<div id="project">
  ### project
</div>

`string`

W\&B プロジェクト名 (`project` または `entity/project` を指定できます) 。W\&B Teams (例: `team/project`) を指定しない場合は、既定の entity が使用されます。
既定の defaul[https://docs.wandb.ai/platform/app/settings-page/user-settings#default-team](https://docs.wandb.ai/platform/app/settings-page/user-settings#default-team)/platform/app/settings-page/user-settings#default-team を検索または更新するには

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

`Partial`\<[`Settings`](../type-aliases/settings)>

(任意) Weave トレース設定

<div id="returns">
  ## 戻り値
</div>

`Promise`\<[`WeaveClient`](../interfaces/weaveclient)>

初期化された Weave クライアントを返す Promise。

<div id="throws">
  ## 例外
</div>

初期化に失敗した場合
