ResponsesProvider.DeleteResponseAsync Method

Definition

Deletes a response envelope by its identifier.

public abstract System.Threading.Tasks.Task DeleteResponseAsync(string responseId, Azure.AI.AgentServer.Core.IsolationContext isolation, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteResponseAsync : string * Azure.AI.AgentServer.Core.IsolationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public MustOverride Function DeleteResponseAsync (responseId As String, isolation As IsolationContext, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

responseId
String

The unique response identifier.

isolation
IsolationContext

The platform isolation context. Use Empty when not applicable.

cancellationToken
CancellationToken

A token to cancel the operation.

Returns

Exceptions

Thrown when the response does not exist.

Applies to