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

# getCurrentSession

> TypeScript SDK リファレンス

<div id="getcurrentsession">
  # getCurrentSession
</div>

▸ **getCurrentSession**(): [`Session`](../classes/session) | `undefined`

現在の Session を返します。存在しない場合は `undefined` を返します。

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

[`Session`](../classes/session) | `undefined`

<div id="defined-in">
  #### 定義場所
</div>

[genai/context.ts:95](https://github.com/wandb/weave/blob/6538626556c93d6f31ae725fdefe4e6b8b71bc2c/sdks/node/src/genai/context.ts#L95)

***
