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

# getCurrentSession

> TypeScript SDK reference

# getCurrentSession

▸ **getCurrentSession**(): [`Session`](../classes/session) | `undefined`

Returns the current Session, or undefined.

#### Returns

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

#### Defined in

[genai/context.ts:95](https://github.com/wandb/weave/blob/6538626556c93d6f31ae725fdefe4e6b8b71bc2c/sdks/node/src/genai/context.ts#L95)

***
