ThreadsOperations interface
表示 Threads作的接口。
属性详细信息
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>