你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ThreadsOperations interface

表示 Threads作的接口。

属性

create

创建新线程。 线程包含消息,可由代理运行。

delete

删除现有线程。

get

获取有关现有线程的信息。

list

获取以前创建的线程列表。

update

修改现有线程。

属性详细信息

create

创建新线程。 线程包含消息,可由代理运行。

create: (options?: ThreadsCreateThreadOptionalParams) => Promise<AgentThread>

属性值

(options?: ThreadsCreateThreadOptionalParams) => Promise<AgentThread>

delete

删除现有线程。

delete: (threadId: string, options?: ThreadsDeleteThreadOptionalParams) => Promise<ThreadDeletionStatus>

属性值

(threadId: string, options?: ThreadsDeleteThreadOptionalParams) => Promise<ThreadDeletionStatus>

get

获取有关现有线程的信息。

get: (threadId: string, options?: ThreadsGetThreadOptionalParams) => Promise<AgentThread>

属性值

(threadId: string, options?: ThreadsGetThreadOptionalParams) => Promise<AgentThread>

list

获取以前创建的线程列表。

list: (options?: ThreadsListThreadsOptionalParams) => PagedAsyncIterableIterator<AgentThread, AgentThread[], PageSettings>

属性值

(options?: ThreadsListThreadsOptionalParams) => PagedAsyncIterableIterator<AgentThread, AgentThread[], PageSettings>

update

修改现有线程。

update: (threadId: string, options?: ThreadsUpdateThreadOptionalParams) => Promise<AgentThread>

属性值

(threadId: string, options?: ThreadsUpdateThreadOptionalParams) => Promise<AgentThread>