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

<Warning>
  **Deprecated.** Use [getCurrentConversation](../functions/getcurrentconversation) instead.
</Warning>

▸ **getCurrentSession**(): [`Conversation`](../classes/conversation) | `undefined`

#### Returns

[`Conversation`](../classes/conversation) | `undefined`

#### Defined in

[src/genai/context.ts:64](https://github.com/wandb/weave/blob/9591aba8a5e77309ee0858e5ba94d31c1bd7e404/sdks/node/src/genai/context.ts#L64)

***
