ThreadsOperations interface
Interfejs reprezentujący operacje Threads.
Właściwości
| create | Tworzy nowy wątek. Wątki zawierają komunikaty i mogą być uruchamiane przez agentów. |
| delete | Usuwa istniejący wątek. |
| get | Pobiera informacje o istniejącym wątku. |
| list | Pobiera listę wątków, które zostały wcześniej utworzone. |
| update | Modyfikuje istniejący wątek. |
Szczegóły właściwości
create
Tworzy nowy wątek. Wątki zawierają komunikaty i mogą być uruchamiane przez agentów.
create: (options?: ThreadsCreateThreadOptionalParams) => Promise<AgentThread>
Wartość właściwości
(options?: ThreadsCreateThreadOptionalParams) => Promise<AgentThread>
delete
Usuwa istniejący wątek.
delete: (threadId: string, options?: ThreadsDeleteThreadOptionalParams) => Promise<ThreadDeletionStatus>
Wartość właściwości
(threadId: string, options?: ThreadsDeleteThreadOptionalParams) => Promise<ThreadDeletionStatus>
get
Pobiera informacje o istniejącym wątku.
get: (threadId: string, options?: ThreadsGetThreadOptionalParams) => Promise<AgentThread>
Wartość właściwości
(threadId: string, options?: ThreadsGetThreadOptionalParams) => Promise<AgentThread>
list
Pobiera listę wątków, które zostały wcześniej utworzone.
list: (options?: ThreadsListThreadsOptionalParams) => PagedAsyncIterableIterator<AgentThread, AgentThread[], PageSettings>
Wartość właściwości
(options?: ThreadsListThreadsOptionalParams) => PagedAsyncIterableIterator<AgentThread, AgentThread[], PageSettings>
update
Modyfikuje istniejący wątek.
update: (threadId: string, options?: ThreadsUpdateThreadOptionalParams) => Promise<AgentThread>
Wartość właściwości
(threadId: string, options?: ThreadsUpdateThreadOptionalParams) => Promise<AgentThread>