提供: Bright Pattern Documentation
• 日本語

Revision as of 10:11, 21 September 2026 by BpDeeplTranslateMaintenance (talk | contribs) (Updated via BpDeeplTranslate extension)

< 前へ
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
移動先: 案内検索
• English

onSummaryGenerationCompleted

AI要約生成の完了または失敗時にトリガーされるイベントを購読します。要約生成が成功した場合、このイベントはトピック要約の配列を提供します。以下が必要です 「リアルタイムAI要約」 が有効になっている必要があります。


リクエスト

構文

on('ON_SUMMARY_GENERATION_COMPLETED', handler: OnSummaryGenerationCompleted): void

type OnSummaryGenerationCompleted = (result: InteractionSummaryResult) => void

type InteractionSummaryResult = InteractionSummary | InteractionSummaryFailed

type InteractionSummary = {

interactionId: string

success: true

topics: SummaryTopic[]

}

type InteractionSummaryFailed = {

interactionId: string

success: false

errorCode: string
}


export type SummaryTopic = {

name: string

value: string

}

リクエスト例

function summaryGenerationCompletedCallback(summary: InteractionSummaryResult) {
if (summary.success) {
console.log("トピックごとの要約:", summary.topics);
} else {
console.log("要約生成エラー、コード:", summary.errorCode);
}
}

adApi.on("ON_SUMMARY_GENERATION_COMPLETED", summaryGenerationCompletedCallback);

戻り値

パラメータ パラメータ値 データ型 オプション/必須 説明
interactionId 文字列 必須 要約が生成されたインタラクションのid
成功 ブール値 必須 成功した場合は true、それ以外は false となります
topics SummaryTopic[] オプション 要約トピックの配列で、それぞれに名前と値が含まれます。success=true の場合のみ
errorCode 文字列 オプション 失敗の識別子です。success=falseの場合にのみ指定されます。
< 前へ