InvocationHandler.GetOpenApiAsync 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.
Handles GET /invocations/docs/openapi.json. Returns 404 by default.
Override to return an OpenAPI spec for the agent's contract.
public virtual System.Threading.Tasks.Task GetOpenApiAsync(Microsoft.AspNetCore.Http.HttpRequest request, Microsoft.AspNetCore.Http.HttpResponse response, System.Threading.CancellationToken cancellationToken);
abstract member GetOpenApiAsync : Microsoft.AspNetCore.Http.HttpRequest * Microsoft.AspNetCore.Http.HttpResponse * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.GetOpenApiAsync : Microsoft.AspNetCore.Http.HttpRequest * Microsoft.AspNetCore.Http.HttpResponse * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function GetOpenApiAsync (request As HttpRequest, response As HttpResponse, cancellationToken As CancellationToken) As Task
Parameters
- request
- HttpRequest
The incoming HTTP request.
- response
- HttpResponse
The outgoing HTTP response.
- cancellationToken
- CancellationToken
A token to observe for cancellation.
Returns
A task representing the async operation.