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

# startLLM

> TypeScript SDK reference

# startLLM

▸ **startLLM**(`opts`): [`LLM`](../classes/llm)

Start an LLM span as a child of the current Turn. Throws if no Turn is
active.

#### Parameters

| Name   | Type                               |
| :----- | :--------------------------------- |
| `opts` | [`LLMInit`](../interfaces/llminit) |

#### Returns

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

#### Defined in

[genai/api.ts:32](https://github.com/wandb/weave/blob/6538626556c93d6f31ae725fdefe4e6b8b71bc2c/sdks/node/src/genai/api.ts#L32)

***
