> ## Documentation Index
> Fetch the complete documentation index at: https://wb-21fd5541-update-reference-docs-58.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# getCurrentSession

> TypeScript SDK reference

# getCurrentSession

<Warning>
  **Deprecated.** Use [getCurrentConversation](./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/2648412ec050240bcd227e6f2469daaa11d0b598/sdks/node/src/genai/context.ts#L64)

***
