インターフェイス: AiPayloadContext
定義: plugins/ai/src/render.ts:48
display.payload フックへ渡る文脈。
分割された応答は2通目以降も同じフックを通るので、index / total で
「何通目か」を見て出し分けられます。
プロパティ
index
readonly index: number;
定義: plugins/ai/src/render.ts:52
分割された何通目か(1始まり)。
kind
readonly kind: AiReplyKind;
定義: plugins/ai/src/render.ts:50
応答の意味づけ(埋め込みの色に使われているもの)。
streaming
readonly streaming: boolean;
定義: plugins/ai/src/render.ts:56
途中経過か(あとで書き換わる送信なら true・最終の送信なら false)。
total
readonly total: number;
定義: plugins/ai/src/render.ts:54
分割された総通数。