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

プロパティ

string
読み取り専用です。
Attributes
読み取り専用です。
string
読み取り専用です。
string
読み取り専用です。

メソッド

end()

パラメーター

SpanEndOptions

startTurn()

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

パラメーター

TurnInit
デフォルト:"{}"
タイプ: TurnInit

戻り値

Turn

サンプル

最終更新日 2026年9月30日