ResponsesProvider.GetResponseAsync 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.
Retrieves a response by its identifier.
public abstract System.Threading.Tasks.Task<Azure.AI.AgentServer.Responses.Models.ResponseObject> GetResponseAsync(string responseId, Azure.AI.AgentServer.Core.IsolationContext isolation, System.Threading.CancellationToken cancellationToken = default);
abstract member GetResponseAsync : string * Azure.AI.AgentServer.Core.IsolationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.AI.AgentServer.Responses.Models.ResponseObject>
Public MustOverride Function GetResponseAsync (responseId As String, isolation As IsolationContext, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResponseObject)
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
The response.
Exceptions
Thrown when the response does not exist.