SkillConversationIdFactory class

ConversationReference インスタンスを格納および取得する SkillConversationIdFactory。

Extends

コンストラクター

SkillConversationIdFactory(Storage)

SkillConversationIdFactory クラスの新しいインスタンスを作成します。

メソッド

createSkillConversationIdWithOptions(SkillConversationIdFactoryOptions)

呼び出し元の ConversationReference に基づいてスキル会話の会話 ID を作成します。

deleteConversationReference(string)

ストレージから SkillConversationReference を削除します。

getSkillConversationReference(string)

skillConversationId の createSkillConversationId() を使用して作成された ConversationReference を取得します。

継承されたメソッド

createSkillConversationId(ConversationReference)

呼び出し元の ConversationReference に基づいてスキル会話の会話 ID を作成します。

getConversationReference(string)

skillConversationId の createSkillConversationId() を使用して作成された ConversationReference を取得します。

コンストラクターの詳細

SkillConversationIdFactory(Storage)

SkillConversationIdFactory クラスの新しいインスタンスを作成します。

new SkillConversationIdFactory(storage: Storage)

パラメーター

storage
Storage

ConversationReference インスタンスのストレージ。

メソッドの詳細

createSkillConversationIdWithOptions(SkillConversationIdFactoryOptions)

呼び出し元の ConversationReference に基づいてスキル会話の会話 ID を作成します。

function createSkillConversationIdWithOptions(options: SkillConversationIdFactoryOptions): Promise<string>

パラメーター

戻り値

Promise<string>

スキルとの通信に使用される一意の会話 ID。

deleteConversationReference(string)

ストレージから SkillConversationReference を削除します。

function deleteConversationReference(skillConversationId: string): Promise<void>

パラメーター

skillConversationId

string

削除のキーとして使用するスキル会話 ID。

戻り値

Promise<void>

非同期操作を表す promise。

getSkillConversationReference(string)

skillConversationId の createSkillConversationId() を使用して作成された ConversationReference を取得します。

function getSkillConversationReference(skillConversationId: string): Promise<SkillConversationReference>

パラメーター

skillConversationId

string

createSkillConversationId() を使用して作成されたスキル conversationId。

戻り値

skillConversationId の呼び出し元の ConversationReference。 見つからない場合は Null。

継承済みメソッドの詳細

createSkillConversationId(ConversationReference)

警告

この API は非推奨になりました。

Method is deprecated, please use createSkillConversationIdWithOptions() with SkillConversationIdFactoryOptions instead.

呼び出し元の ConversationReference に基づいてスキル会話の会話 ID を作成します。

function createSkillConversationId(_conversationReference: ConversationReference): Promise<string>

パラメーター

_conversationReference

ConversationReference

スキルの呼び出し元 ConversationReference。

戻り値

Promise<string>

注釈

要求 URL で返された文字列を使用でき、特殊文字を含めないようにする必要があります。 スキルとの通信に使用される一意の会話 ID を返します。

SkillConversationIdFactoryBase.createSkillConversationIdから継承されます

getConversationReference(string)

警告

この API は非推奨になりました。

Method is deprecated, please use getSkillConversationReference() instead.

skillConversationId の createSkillConversationId() を使用して作成された ConversationReference を取得します。

function getConversationReference(_skillConversationId: string): Promise<ConversationReference>

パラメーター

_skillConversationId

string

createSkillConversationId() を使用して作成されたスキル conversationId。

戻り値

Promise<ConversationReference>

注釈

skillConversationId の呼び出し元の ConversationReference を返します。 見つからない場合は null。

SkillConversationIdFactoryBase.getConversationReferenceから継承されます