Partager via


OpenApiFunctionExecutionParameters.HttpResponseContentReader Property

Definition

A custom HTTP response content reader. It can be useful when the internal reader for a specific content type is either missing, insufficient, or when custom behavior is desired. For instance, the internal reader for "application/json" HTTP content reads the content as a string. This may not be sufficient in cases where the JSON content is large, streamed chunk by chunk, and needs to be accessed as soon as the first chunk is available. To handle such cases, a custom reader can be provided to read the content as a stream rather than as a string. If the custom reader is not provided, or the reader returns null, the internal reader is used.

public Microsoft.SemanticKernel.Plugins.OpenApi.HttpResponseContentReader? HttpResponseContentReader { get; set; }
member this.HttpResponseContentReader : Microsoft.SemanticKernel.Plugins.OpenApi.HttpResponseContentReader with get, set
Public Property HttpResponseContentReader As HttpResponseContentReader

Property Value

Applies to