Skip to main content
Une Conversation regroupe des Turns sous un même gen_ai.conversation.id. Elle n’est pas elle-même un span OTel : ce sont ses enfants qui inscrivent l’identifiant de conversation sur leurs propres spans.

Accesseurs

agentName

Signature d’obtention

get agentName(): string
string

attributes

Signature d’obtention

get attributes(): Attributes
Attributes

conversationId

Signature d’obtention

get conversationId(): string
string

model

Signature d’obtention

get model(): string
string

sessionId

Obsolète. Utilisez plutôt Conversation.conversationId.

Signature d’obtention

get sessionId(): string
string

Méthodes

end()

end(opts?): void

Paramètres

object

Renvoie

void

startTurn()

startTurn(opts?): Turn
Démarre un nouveau Turn dans cette Conversation. Le tour de conversation hérite du conversationId de la conversation ; agentName, agentId, agentDescription, agentVersion et model reprennent les valeurs de la conversation lorsqu’ils ne sont pas fournis dans opts.

Paramètres

TurnInit = {}
Voir TurnInit.

Renvoie

Turn

Exemples

Dernière modification le 30 septembre 2026