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

# getCurrentSession

> TypeScript SDK reference

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

> `const` **getCurrentSession**: () => [`Conversation`](../interfaces/conversation) | `undefined` = `getCurrentConversation`

Defined in: [src/genai/context.ts:64](https://github.com/wandb/weave/blob/8c5f077eb11c42b84000726ff20504abc728d3fb/sdks/node/src/genai/context.ts#L64)

Returns the current Conversation, or undefined.

## Returns

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