Skip to main content

startConversation

startConversation(opts?): Conversation Start a new Conversation and install it as the current conversation. Subsequent calls to startTurn will pick it up automatically. Pass attributes to stamp custom (non-semconv) attributes on every span the conversation emits.

Parameters

NameType
optsConversationInit

Returns

Conversation Example
weave.startConversation({: 'research-bot'});
Example
weave.startConversation({
  : 'research-bot',
  : '019efa53-8a65-711c-b4c1-7c1cb72c0bb7',
  : {'myagent.version': '1.23'},
});

Defined in

src/genai/api.ts:26