Describe the bug
Importing an API Manifest-based Plugin function does not respect the HttpResponseContentReader or RestApiOperationResponseFactory configurations set in the ApiManifestPluginParameters.FunctionExecutionParameters.
To Reproduce
I've created cdschneider/semantic-kernel-apimanifest-bug to reproduce the issue. Clone this repo and run dotnet test to see the failing tests which shows the bug in action. See repo's README for more detailed information.
WeatherGovAsOpenApi - Passes (callbacks are invoked)
WeatherGovAsApiManifest - Fails (callbacks are ignored)
Expected behavior
I would expect that custom delegates (defined in the HttpResponseContentReader or RestApiOperationResponseFactory plugin parameters) to be used during the invocation of the plugin function. This is the behavior when using OpenAPI plugins directly.
Screenshots
n/a
Platform
- Language: C# (net10)
- Source: Nuget package
Microsoft.SemanticKernel.Plugins.OpenApi.Extensions/1.68.0-alpha
- AI model: OpenAI:GPT-4o-mini(2024-07-18)
- IDE: VS Code
- OS: MacOS
Additional context
I am willing and able to help contribute a bug fix for this issue