Passer au contenu principal

startLLM

startLLM(opts): LLM Démarre une span LLM enfant du tour de conversation actuel. Lève une exception si aucun tour de conversation n’est actif.

Paramètres

NomType
optsLLMInit

Renvoie

LLM Exemple
weave.startLLM({: 'gpt-4o-mini', : 'openai'});
Exemple
weave.startLLM({
  : 'gpt-4o-mini',
  : 'openai',
  : new ('2026-05-29T10:00:00.000Z'),
});

Défini dans

src/genai/api.ts:70