Partilhar via


ThreadsOperations interface

Interface que representa uma operação Threads.

Propriedades

create

Cria um novo thread. Os threads contêm mensagens e podem ser executados por agentes.

delete

Exclui um thread existente.

get

Obtém informações sobre um thread existente.

list

Obtém uma lista de threads que foram criados anteriormente.

update

Modifica um thread existente.

Detalhes de Propriedade

create

Cria um novo thread. Os threads contêm mensagens e podem ser executados por agentes.

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

Valor de Propriedade

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

delete

Exclui um thread existente.

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

Valor de Propriedade

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

get

Obtém informações sobre um thread existente.

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

Valor de Propriedade

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

list

Obtém uma lista de threads que foram criados anteriormente.

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

Valor de Propriedade

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

update

Modifica um thread existente.

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

Valor de Propriedade

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