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

# startSession

> TypeScript SDK reference

# startSession

▸ **startSession**(`opts?`): [`Session`](../classes/session)

Start a new Session and install it as the current session.
Subsequent calls to `startTurn` will pick it up automatically.

#### Parameters

| Name   | Type                                       |
| :----- | :----------------------------------------- |
| `opts` | [`SessionInit`](../interfaces/sessioninit) |

#### Returns

[`Session`](../classes/session)

#### Defined in

[genai/api.ts:12](https://github.com/wandb/weave/blob/6538626556c93d6f31ae725fdefe4e6b8b71bc2c/sdks/node/src/genai/api.ts#L12)

***
