gen_ai.conversation.id. It is
not itself an OTel span — children stamp the conversation id onto theirs.
Accessors
agentName
Get Signature
get agentName(): string
Defined in: src/genai/conversation.ts:94
Returns
string
attributes
Get Signature
get attributes(): Attributes
Defined in: src/genai/conversation.ts:106
Returns
Attributes
conversationId
Get Signature
get conversationId(): string
Defined in: src/genai/conversation.ts:102
Returns
string
model
Get Signature
get model(): string
Defined in: src/genai/conversation.ts:98
Returns
string
sessionId
Get Signature
get sessionId(): string
Defined in: src/genai/conversation.ts:111
Returns
string
Methods
end()
end(Defined in: src/genai/conversation.ts:168opts?):void
Parameters
opts?
SpanEndOptions
Returns
void
startTurn()
startTurn(Defined in: src/genai/conversation.ts:156 Start a newopts?):Turn
Turn under this Conversation. The turn inherits the
conversation’s conversationId; agentName, agentId, agentDescription,
agentVersion and model fall back to the conversation’s values when not
provided on opts.
Parameters
opts?
TurnInit = {}
Returns
Turn