ResponsesProvider.DeleteResponseAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Deletes a response envelope by its identifier.
public abstract System.Threading.Tasks.Task DeleteResponseAsync(string responseId, Azure.AI.AgentServer.Core.PlatformContext context, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteResponseAsync : string * Azure.AI.AgentServer.Core.PlatformContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public MustOverride Function DeleteResponseAsync (responseId As String, context As PlatformContext, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- responseId
- String
The unique response identifier.
- context
- PlatformContext
The platform context. Use Empty when not applicable.
- cancellationToken
- CancellationToken
A token to cancel the operation.
Returns
Exceptions
Thrown when the response does not exist.