Bagikan melalui


ThreadsOperations interface

Antarmuka yang mewakili operasi Threads.

Properti

create

Membuat utas baru. Utas berisi pesan dan dapat dijalankan oleh agen.

delete

Menghapus utas yang ada.

get

Mendapatkan informasi tentang utas yang sudah ada.

list

Mendapatkan daftar utas yang sebelumnya dibuat.

update

Memodifikasi utas yang ada.

Detail Properti

create

Membuat utas baru. Utas berisi pesan dan dapat dijalankan oleh agen.

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

Nilai Properti

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

delete

Menghapus utas yang ada.

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

Nilai Properti

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

get

Mendapatkan informasi tentang utas yang sudah ada.

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

Nilai Properti

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

list

Mendapatkan daftar utas yang sebelumnya dibuat.

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

Nilai Properti

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

update

Memodifikasi utas yang ada.

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

Nilai Properti

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