Open SergeyMenshykh opened 6 months ago
Consider marshaling arguments of JsonElement type to target function parameter types.
JsonElement
Example:
[Fact] public async void MarshalArgumentsOfJsonElementTypeAsync() { // Arrange var element = JsonDocument.Parse("28").RootElement; object? actualValue = null; var function1 = KernelFunctionFactory.CreateFromMethod((int number) => { actualValue = number; }); await function1.InvokeAsync(this._kernel, new() { ["number"] = element }); Assert.NotNull(actualValue); Assert.Equal(28, actualValue); }
This issue is stale because it has been open for 90 days with no activity.
Consider marshaling arguments of
JsonElement
type to target function parameter types.Example: