gen_ai.conversation.id. It is
not itself an OTel span — children stamp the conversation id onto theirs.
Table of contents
Accessors
Methods
Accessors
agentName
•get agentName(): string
Returns
string
Defined in
src/genai/conversation.ts:94attributes
•get attributes(): Attributes
Returns
Attributes
Defined in
src/genai/conversation.ts:106conversationId
•get conversationId(): string
Returns
string
Defined in
src/genai/conversation.ts:102model
•get model(): string
Returns
string
Defined in
src/genai/conversation.ts:98sessionId
•get sessionId(): string
Returns
string
Defined in
src/genai/conversation.ts:111Methods
end
▸ end(opts?): void
Parameters
| Name | Type |
|---|---|
opts? | SpanEndOptions |
Returns
void
Defined in
src/genai/conversation.ts:168startTurn
▸ startTurn(opts?): Turn
Start a new 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
| Name | Type |
|---|---|
opts | TurnInit |
Returns
Turn
Example
Example
Defined in
src/genai/conversation.ts:156create
▸ create(opts?): Conversation
Parameters
| Name | Type |
|---|---|
opts | ConversationInit |
Returns
Conversation