OpenAIClient.CreateThreadAndRunAsync

OpenAIClient.CreateThreadAndRunAsync metodo

Crea un thread e un run al suo interno in modo asincrono.

public Task<RunResponse> CreateThreadAndRunAsync(RunThreadCreateRequest runCreateRequest, 
    CancellationToken? cancellationToken = default)
ParameterTypeDescription
runCreateRequestRunThreadCreateRequestI dettagli della richiesta per creare il thread e il run.
cancellationTokenNullable`1Un token per annullare l’operazione.

Return Value

Un task che rappresenta l’operazione asincrona. Il risultato del task contiene la risposta dalla creazione del thread e del run.

See Also