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
Example

Defined in

src/genai/api.ts:26