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/GenerativeAI.Microsoft/GenerativeAI.Microsoft.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<ProjectReference Include="..\GenerativeAI\GenerativeAI.csproj" />
</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" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions src/GenerativeAI.Microsoft/GenerativeAIChatClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private async Task<ChatResponse> CallFunctionAsync(GenerateContentRequest reques
var tool = (AIFunction?) options.Tools.Where(s=>s is AIFunction).FirstOrDefault(s=>s.Name == functionCall.Name);
if (tool != null)
{
var result = await tool.InvokeAsync(functionCall.Arguments,cancellationToken).ConfigureAwait(false);
var result = await tool.InvokeAsync(new AIFunctionArguments(functionCall.Arguments), cancellationToken).ConfigureAwait(false);
if (result != null)
{
var contents = request.Contents;
Expand Down Expand Up @@ -126,7 +126,7 @@ private async IAsyncEnumerable<ChatResponseUpdate> CallFunctionStreamingAsync(Ge
var tool = (AIFunction?) options.Tools.Where(s=>s is AIFunction).FirstOrDefault(s=>s.Name == functionCall.Name);
if (tool != null)
{
var result = await tool.InvokeAsync(functionCall.Arguments,cancellationToken).ConfigureAwait(false);
var result = await tool.InvokeAsync(new AIFunctionArguments(functionCall.Arguments), cancellationToken).ConfigureAwait(false);
if (result != null)
{
var contents = request.Contents;
Expand Down