SkillConversationIdFactoryBase 类

  • java.lang.Object
    • com.microsoft.bot.builder.skills.SkillConversationIdFactoryBase

public abstract class SkillConversationIdFactoryBase

定义工厂的接口,该接口用于为技能会话创建唯一的对话 ID。

构造函数摘要

构造函数 说明
SkillConversationIdFactoryBase()

方法摘要

修饰符和类型 方法和描述
java.util.concurrent.CompletableFuture<java.lang.String> createSkillConversationId(SkillConversationIdFactoryOptions options)

为技能对话创建会话 ID。

java.util.concurrent.CompletableFuture<java.lang.String> createSkillConversationId(ConversationReference conversationReference)

为技能对话超级创建聊天 ID。

abstract java.util.concurrent.CompletableFuture<java.lang.Void> deleteConversationReference(String skillConversationId)

删除 ConversationReference

java.util.concurrent.CompletableFuture<ConversationReference> getConversationReference(String skillConversationId)

获取使用 {@link CreateSkillConversationId(Microsoft#getBot()#getSchema()#getConversatio Reference()、System#getThreading()#getCancellationToken()} 为技能ID 创建的 ConversationReference

java.util.concurrent.CompletableFuture<SkillConversationReference> getSkillConversationReference(String skillConversationId)

获取 {@link 创建技能ID(技能对话IdFactory选项、System#getT 读取()#get取消令牌()}期间用于技能对话ID 的 SkillConversationReference

方法继承自 java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

构造函数详细信息

SkillConversationIdFactoryBase

public SkillConversationIdFactoryBase()

方法详细信息

createSkillConversationId

public CompletableFuture createSkillConversationId(SkillConversationIdFactoryOptions options)

为技能对话创建会话 ID。

参数:

options - 包含用于创建会话 ID 的参数的 SkillConversationIdFactoryOptions 实例。

返回:

用于与技能通信的唯一聊天 ID。 应该可以在请求 URL 上使用返回的字符串,并且不应包含特殊字符。

createSkillConversationId

public CompletableFuture createSkillConversationId(ConversationReference conversationReference)

为技能对话超级创建聊天 ID。 调用方 ConversationReference

参数:

conversationReference - 技能的调用方 ConversationReference

返回:

用于与技能通信的唯一聊天 ID。 应该可以在请求 URL 上使用返回的字符串,并且不应包含特殊字符。

deleteConversationReference

public abstract CompletableFuture deleteConversationReference(String skillConversationId)

删除 ConversationReference

参数:

skillConversationId - 使用 {@link CreateSkillConversationId(SkillConversationIdFactoryOptions,System#getT reading()#getCancellationToken())创建的技能 conversationId。

返回:

表示异步作的 CompletableFuture

getConversationReference

public CompletableFuture getConversationReference(String skillConversationId)

获取为 skillConversationId 使用 {@link CreateSkillConversationId(Microsoft#getBot()#getSchema()#getConversatio Reference(),System#getThreading()#getCancellationToken()}创建的 ConversationReference

参数:

skillConversationId - 使用 {@link CreateSkillConversationId(Microsoft#getBot()#getSchema()#getConversatio Reference(),System#getThreading()#getCancellationToken()} 创建的技能 conversationId。

返回:

调用方对 skillConversationId 的 ConversationReference。 如果未找到,则为 null。

getSkillConversationReference

public CompletableFuture getSkillConversationReference(String skillConversationId)

获取 skillConversationId 的 {@link CreateSkillConversationId(SkillConversationIdFactoryOptions,System#getT reading()#getCancellationToken()}期间使用的 SkillConversationReference

参数:

skillConversationId - 使用 {@link CreateSkillConversationId(SkillConversationIdFactoryOptions,System#getT reading()#getCancellationToken())创建的技能 conversationId。

返回:

调用方对 skillConversationId 的 ConversationReference,其来源为Audience。 如果未找到,则为 Null。

适用于