Skip to main content
Conversation は、複数のターンを 1 つの gen_ai.conversation.id にまとめます。 Conversation 自体は OTel スパンではありません。子要素が、それぞれのスパンに会話 ID を付与します。

アクセサー

agentName

Get シグネチャ

get agentName(): string
string

attributes

Get シグネチャ

get attributes(): Attributes
Attributes

conversationId

Get シグネチャ

get conversationId(): string
string

model

Get シグネチャ

get model(): string
string

sessionId

非推奨: 代わりに Conversation.conversationId を使用してください。

Get シグネチャ

get sessionId(): string
string

メソッド

end()

end(opts?): void

パラメーター

object

戻り値

void

startTurn()

startTurn(opts?): Turn
この Conversation 配下で新しい Turn を開始します。ターンは会話の conversationId を継承します。agentName、agentId、agentDescription、 agentVersion、model は、opts で指定されていない場合、 会話の値が使用されます。

パラメーター

TurnInit = {}
TurnInit を参照してください。

戻り値

Turn

サンプル

最終更新日 2026年9月29日