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>