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

> Référence du SDK TypeScript

<Warning>
  **Obsolète.** Utilisez plutôt [getCurrentConversation](../functions/getcurrentconversation).
</Warning>

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

Renvoie la Conversation actuelle ou `undefined`.

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

<div id="returns">
  ## Renvoie
</div>

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