Condividi tramite


ThreadsOperations interface

Interfaccia che rappresenta un'operazione Threads.

Proprietà

create

Crea un nuovo thread. I thread contengono messaggi e possono essere eseguiti dagli agenti.

delete

Elimina un thread esistente.

get

Ottiene informazioni su un thread esistente.

list

Ottiene un elenco di thread creati in precedenza.

update

Modifica un thread esistente.

Dettagli proprietà

create

Crea un nuovo thread. I thread contengono messaggi e possono essere eseguiti dagli agenti.

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

Valore della proprietà

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

delete

Elimina un thread esistente.

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

Valore della proprietà

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

get

Ottiene informazioni su un thread esistente.

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

Valore della proprietà

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

list

Ottiene un elenco di thread creati in precedenza.

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

Valore della proprietà

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

update

Modifica un thread esistente.

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

Valore della proprietà

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