Skip to main content

endLLM

endLLM(opts?): void End the current LLM. No-op if no LLM is active.

Parameters

NameType
opts?SpanEndOptions

Returns

void Example
weave.endLLM();
Example
weave.endLLM({: new ('2026-05-29T10:00:00.800Z')});
Example
weave.endLLM({: new ('llm call failed')});

Defined in

src/genai/api.ts:194