diff --git a/src/libs/CSharpToJsonSchema/CSharpToJsonSchema.csproj b/src/libs/CSharpToJsonSchema/CSharpToJsonSchema.csproj index 05d66ea..96a8a2d 100644 --- a/src/libs/CSharpToJsonSchema/CSharpToJsonSchema.csproj +++ b/src/libs/CSharpToJsonSchema/CSharpToJsonSchema.csproj @@ -17,7 +17,7 @@ - + diff --git a/src/libs/CSharpToJsonSchema/MeaiFunction.cs b/src/libs/CSharpToJsonSchema/MeaiFunction.cs index a55d546..b054c23 100644 --- a/src/libs/CSharpToJsonSchema/MeaiFunction.cs +++ b/src/libs/CSharpToJsonSchema/MeaiFunction.cs @@ -80,15 +80,16 @@ private JsonSerializerOptions InitializeReflectionOptions() return _options; #pragma warning restore IL2026, IL3050 // Reflection is used only when enabled } - + + /// /// Invokes the tool with the given arguments asynchronously. /// /// The arguments to pass to the tool. /// A cancellation token to cancel the operation, if needed. /// The result of the tool's execution as a deserialized object. - protected override async Task InvokeCoreAsync(IEnumerable> arguments, + protected override async ValueTask InvokeCoreAsync(AIFunctionArguments arguments, CancellationToken cancellationToken) { var json = GetArgsString(arguments); diff --git a/src/tests/AotConsole/AotConsole.csproj b/src/tests/AotConsole/AotConsole.csproj index 7017104..c69d4c8 100644 --- a/src/tests/AotConsole/AotConsole.csproj +++ b/src/tests/AotConsole/AotConsole.csproj @@ -15,7 +15,7 @@ - + diff --git a/src/tests/CSharpToJsonSchema.MeaiTests/CSharpToJsonSchema.MeaiTests.csproj b/src/tests/CSharpToJsonSchema.MeaiTests/CSharpToJsonSchema.MeaiTests.csproj index c85e4e5..45c7c1f 100644 --- a/src/tests/CSharpToJsonSchema.MeaiTests/CSharpToJsonSchema.MeaiTests.csproj +++ b/src/tests/CSharpToJsonSchema.MeaiTests/CSharpToJsonSchema.MeaiTests.csproj @@ -15,7 +15,7 @@ all runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/src/tests/CSharpToJsonSchema.MeaiTests/Meai_Tests.cs b/src/tests/CSharpToJsonSchema.MeaiTests/Meai_Tests.cs index 22e05bc..da8c208 100644 --- a/src/tests/CSharpToJsonSchema.MeaiTests/Meai_Tests.cs +++ b/src/tests/CSharpToJsonSchema.MeaiTests/Meai_Tests.cs @@ -64,6 +64,7 @@ public async Task ShouldInvokeTheFunctions_NoParameters() Console.WriteLine(response.Text); } + //[TestMethod] public async Task ShouldInvokeTheFunctions_NoParameters2() { @@ -90,8 +91,9 @@ public async Task ShouldInvokeTheFunctions_NoParameters2() Console.WriteLine(response.Text); } + - //[TestMethod] + // [TestMethod] public async Task ShouldInvokeTheBookService() { var key = Environment.GetEnvironmentVariable("OPEN_AI_APIKEY",EnvironmentVariableTarget.User); @@ -119,7 +121,9 @@ public async Task ShouldInvokeTheBookService() Console.WriteLine(response.Text); } + // [TestMethod] + public async Task ShouldInvokeTheBookService_NoParameters() { var key = Environment.GetEnvironmentVariable("OPEN_AI_APIKEY",EnvironmentVariableTarget.User);