Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/libs/CSharpToJsonSchema/CSharpToJsonSchema.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.AI.Abstractions" Version="9.3.0-preview.1.25161.3" />
<PackageReference Include="Microsoft.Extensions.AI.Abstractions" Version="9.4.0-preview.1.25207.5" />
<PackageReference Include="System.Text.Json" Version="9.0.2" />
</ItemGroup>

Expand Down
5 changes: 3 additions & 2 deletions src/libs/CSharpToJsonSchema/MeaiFunction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,15 +80,16 @@ private JsonSerializerOptions InitializeReflectionOptions()
return _options;
#pragma warning restore IL2026, IL3050 // Reflection is used only when enabled
}




/// <summary>
/// Invokes the tool with the given arguments asynchronously.
/// </summary>
/// <param name="arguments">The arguments to pass to the tool.</param>
/// <param name="cancellationToken">A cancellation token to cancel the operation, if needed.</param>
/// <returns>The result of the tool's execution as a deserialized object.</returns>
protected override async Task<object?> InvokeCoreAsync(IEnumerable<KeyValuePair<string, object?>> arguments,
protected override async ValueTask<object?> InvokeCoreAsync(AIFunctionArguments arguments,
CancellationToken cancellationToken)
{
var json = GetArgsString(arguments);
Expand Down
2 changes: 1 addition & 1 deletion src/tests/AotConsole/AotConsole.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.AI" Version="9.3.0-preview.1.25161.3" />
<PackageReference Include="Microsoft.Extensions.AI" Version="9.4.0-preview.1.25207.5" />
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Potential version mismatch between packages.

You've updated Microsoft.Extensions.AI to 9.4.0-preview.1.25207.5, but Microsoft.Extensions.AI.OpenAI remains at 9.3.0-preview.1.25161.3. This could lead to compatibility issues.

Consider updating Microsoft.Extensions.AI.OpenAI to match the version of Microsoft.Extensions.AI. Let's check if the 9.4.0-preview.1.25207.5 version exists for the OpenAI package:


🏁 Script executed:

#!/bin/bash
# Check if the same version exists for Microsoft.Extensions.AI.OpenAI
curl -s https://api.nuget.org/v3-flatcontainer/microsoft.extensions.ai.openai/index.json | jq '.versions'

Length of output: 341


Action Required: Update Microsoft.Extensions.AI.OpenAI to 9.4.0-preview.1.25207.5

The version check confirms that Microsoft.Extensions.AI.OpenAI now has a "9.4.0-preview.1.25207.5" release available on NuGet. Since the Microsoft.Extensions.AI package in src/tests/AotConsole/AotConsole.csproj is already updated to this version, please update the corresponding Microsoft.Extensions.AI.OpenAI reference from "9.3.0-preview.1.25161.3" to "9.4.0-preview.1.25207.5" to avoid compatibility issues.

  • File Affected: src/tests/AotConsole/AotConsole.csproj (for Microsoft.Extensions.AI) and the corresponding project file(s) holding the Microsoft.Extensions.AI.OpenAI reference.
  • Action: Update Microsoft.Extensions.AI.OpenAI to version 9.4.0-preview.1.25207.5.

<PackageReference Include="Microsoft.Extensions.AI.OpenAI" Version="9.3.0-preview.1.25161.3" />
<PackageReference Include="OpenAI" Version="2.2.0-beta.4" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Extensions.AI" Version="9.3.0-preview.1.25161.3" />
<PackageReference Include="Microsoft.Extensions.AI" Version="9.4.0-preview.1.25207.5" />
<PackageReference Include="Microsoft.Extensions.AI.OpenAI" Version="9.3.0-preview.1.25161.3" />
<PackageReference Include="MSTest" Version="3.8.3" />
<PackageReference Include="FluentAssertions" Version="8.2.0" />
Expand Down
6 changes: 5 additions & 1 deletion src/tests/CSharpToJsonSchema.MeaiTests/Meai_Tests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public async Task ShouldInvokeTheFunctions_NoParameters()
Console.WriteLine(response.Text);
}


//[TestMethod]
public async Task ShouldInvokeTheFunctions_NoParameters2()
{
Expand All @@ -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);
Expand Down Expand Up @@ -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);
Expand Down
Loading