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
4 changes: 2 additions & 2 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<PackageVersion Include="Microsoft.Bcl.AsyncInterfaces" Version="9.0.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.Common" Version="4.12.0" />
<PackageVersion Include="Microsoft.CodeAnalysis.CSharp" Version="4.12.0" />
<PackageVersion Include="Microsoft.Extensions.AI.Abstractions" Version="9.3.0-preview.1.25161.3" />
<PackageVersion Include="Microsoft.Extensions.AI" Version="9.3.0-preview.1.25161.3" />
<PackageVersion Include="Microsoft.Extensions.AI.Abstractions" Version="9.4.0-preview.1.25207.5" />
<PackageVersion Include="Microsoft.Extensions.AI" Version="9.4.0-preview.1.25207.5" />
<PackageVersion Include="Microsoft.Extensions.Logging.Debug" Version="9.0.2" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageVersion Include="Moq" Version="4.20.72" />
Expand Down
4 changes: 2 additions & 2 deletions test/AbstractionMapperTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,10 @@ public void Maps_Messages_With_Tools()
tool.Function.Parameters.Properties["city"].Description.ShouldBe("The city to get the weather for");
tool.Function.Parameters.Properties["city"].Enum.ShouldBeNull();
tool.Function.Parameters.Properties["city"].Type.ShouldBe("string");
tool.Function.Parameters.Properties["unit"].Description.ShouldBe("The unit to calculate the current temperature to");
tool.Function.Parameters.Properties["unit"].Description.ShouldBe("The unit to calculate the current temperature to (Default value: \"celsius\")");
tool.Function.Parameters.Properties["unit"].Enum.ShouldBeNull();
tool.Function.Parameters.Properties["unit"].Type.ShouldBe("string");
tool.Function.Parameters.Required.ShouldBe(["city"], ignoreOrder: true);
tool.Function.Parameters.Required.ShouldBe(["city", "unit"], ignoreOrder: true); // AIJsonSchemaCreateOptions.RequireAllProperties is true by default.
tool.Function.Parameters.Type.ShouldBe("object");
tool.Type.ShouldBe("function");
}
Expand Down