IOpenAIClient.RunAndGetAssistantResponseAsync
IOpenAIClient.RunAndGetAssistantResponseAsync method
Runs the assistant with the specified threadId and runCreateRequest, and asynchronously gets the assistant response.
public Task<string> RunAndGetAssistantResponseAsync(string threadId,
RunCreateRequest runCreateRequest, CancellationToken? cancellationToken)
Parameter | Type | Description |
---|---|---|
threadId | String | The ID of the thread. |
runCreateRequest | RunCreateRequest | The run creation request. |
cancellationToken | Nullable`1 | The cancellation token (optional). |
Return Value
A task representing the asynchronous operation with the assistant response string.
See Also
- class RunCreateRequest
- interface IOpenAIClient
- namespace Aspose.Pdf.AI
- assembly Aspose.PDF