Compartilhar 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 da propriedade

create

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

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

Valor da propriedade

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

delete

Exclui um thread existente.

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

Valor da propriedade

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

get

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

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

Valor da 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 da propriedade

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

update

Modifica um thread existente.

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

Valor da propriedade

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