Share via


RestApiOperationResponse(Object, String, KernelJsonSchema) Constructor

Definition

Initializes a new instance of the RestApiOperationResponse class.

public RestApiOperationResponse (object? content, string? contentType, Microsoft.SemanticKernel.KernelJsonSchema? expectedSchema = default);
new Microsoft.SemanticKernel.RestApiOperationResponse : obj * string * Microsoft.SemanticKernel.KernelJsonSchema -> Microsoft.SemanticKernel.RestApiOperationResponse
Public Sub New (content As Object, contentType As String, Optional expectedSchema As KernelJsonSchema = Nothing)

Parameters

content
Object

The content of the response.

contentType
String

The content type of the response.

expectedSchema
KernelJsonSchema

The schema against which the response body should be validated.

Applies to