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

# getCurrentLLM

> TypeScript SDK reference

# getCurrentLLM

▸ **getCurrentLLM**(): [`LLM`](../classes/llm) | `undefined`

Returns the current LLM, or undefined.

#### Returns

[`LLM`](../classes/llm) | `undefined`

#### Defined in

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

***
