AIAgentInvocation.DoInvokeAsync 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.
Executes the agent invocation asynchronously.
protected override System.Threading.Tasks.Task<Azure.AI.AgentServer.Contracts.Generated.Responses.Response> DoInvokeAsync(Azure.AI.AgentServer.Contracts.Generated.Responses.CreateResponseRequest request, Azure.AI.AgentServer.Responses.Invocation.AgentInvocationContext context, System.Threading.CancellationToken cancellationToken);
override this.DoInvokeAsync : Azure.AI.AgentServer.Contracts.Generated.Responses.CreateResponseRequest * Azure.AI.AgentServer.Responses.Invocation.AgentInvocationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.AI.AgentServer.Contracts.Generated.Responses.Response>
Protected Overrides Function DoInvokeAsync (request As CreateResponseRequest, context As AgentInvocationContext, cancellationToken As CancellationToken) As Task(Of Response)
Parameters
- request
- CreateResponseRequest
The create response request.
- context
- AgentInvocationContext
The agent invocation context.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
The response from the agent.