> ## 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 リファレンス

<Warning>
  **非推奨。** 代わりに [getCurrentConversation](../functions/getcurrentconversation) を使用してください。
</Warning>

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

現在の Conversation、または undefined を返します。

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

<div id="returns">
  ## 戻り値
</div>

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