Condividi tramite


RunsOperations interface

Interfaccia che rappresenta un'operazione di esecuzione.

Proprietà

cancel

Annulla l'esecuzione di un thread in corso.

create

Crea una nuova esecuzione per un thread dell'agente.

createAndPoll

Crea una nuova esecuzione per un thread dell'agente con polling.

createThreadAndRun

Crea un nuovo thread ed esegue per un agente.

get

Ottiene un'esecuzione esistente da un thread esistente.

list

Ottiene un elenco di esecuzioni per un thread specificato.

submitToolOutputs

Invia gli output dagli strumenti richiesti dalle chiamate degli strumenti in un'esecuzione.

update

Modifica un'esecuzione di thread esistente.

Dettagli proprietà

cancel

Annulla l'esecuzione di un thread in corso.

cancel: (threadId: string, runId: string, options?: RunsCancelRunOptionalParams) => Promise<ThreadRun>

Valore della proprietà

(threadId: string, runId: string, options?: RunsCancelRunOptionalParams) => Promise<ThreadRun>

create

Crea una nuova esecuzione per un thread dell'agente.

create: (threadId: string, assistantId: string, options?: RunsCreateRunOptionalParams) => AgentRunResponse

Valore della proprietà

(threadId: string, assistantId: string, options?: RunsCreateRunOptionalParams) => AgentRunResponse

createAndPoll

Crea una nuova esecuzione per un thread dell'agente con polling.

createAndPoll: (threadId: string, assistantId: string, options?: RunsCreateRunOptionalParams) => PollerLike<OperationState<ThreadRun>, ThreadRun>

Valore della proprietà

(threadId: string, assistantId: string, options?: RunsCreateRunOptionalParams) => PollerLike<OperationState<ThreadRun>, ThreadRun>

createThreadAndRun

Crea un nuovo thread ed esegue per un agente.

createThreadAndRun: (assistantId: string, options?: CreateThreadAndRunOptionalParams) => AgentRunResponse

Valore della proprietà

(assistantId: string, options?: CreateThreadAndRunOptionalParams) => AgentRunResponse

get

Ottiene un'esecuzione esistente da un thread esistente.

get: (threadId: string, runId: string, options?: RunsGetRunOptionalParams) => Promise<ThreadRun>

Valore della proprietà

(threadId: string, runId: string, options?: RunsGetRunOptionalParams) => Promise<ThreadRun>

list

Ottiene un elenco di esecuzioni per un thread specificato.

list: (threadId: string, options?: RunsListRunsOptionalParams) => PagedAsyncIterableIterator<ThreadRun, ThreadRun[], PageSettings>

Valore della proprietà

(threadId: string, options?: RunsListRunsOptionalParams) => PagedAsyncIterableIterator<ThreadRun, ThreadRun[], PageSettings>

submitToolOutputs

Invia gli output dagli strumenti richiesti dalle chiamate degli strumenti in un'esecuzione.

submitToolOutputs: (threadId: string, runId: string, toolOutputs: ToolOutput[], options?: RunsSubmitToolOutputsToRunOptionalParams) => AgentRunResponse

Valore della proprietà

(threadId: string, runId: string, toolOutputs: ToolOutput[], options?: RunsSubmitToolOutputsToRunOptionalParams) => AgentRunResponse

update

Modifica un'esecuzione di thread esistente.

update: (threadId: string, runId: string, options?: RunsUpdateRunOptionalParams) => Promise<ThreadRun>

Valore della proprietà

(threadId: string, runId: string, options?: RunsUpdateRunOptionalParams) => Promise<ThreadRun>