File tree Expand file tree Collapse file tree
src/GenerativeAI.Microsoft Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3232 <ProjectReference Include =" ..\GenerativeAI\GenerativeAI.csproj" />
3333 </ItemGroup >
3434 <ItemGroup >
35- <PackageReference Include =" Microsoft.Extensions.AI" Version =" 9.3 .0-preview.1.25161.3 " />
35+ <PackageReference Include =" Microsoft.Extensions.AI" Version =" 9.4 .0-preview.1.25207.5 " />
3636 </ItemGroup >
3737
3838</Project >
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ private async Task<ChatResponse> CallFunctionAsync(GenerateContentRequest reques
8181 var tool = ( AIFunction ? ) options . Tools . Where ( s=> s is AIFunction ) . FirstOrDefault ( s=> s . Name == functionCall . Name ) ;
8282 if ( tool != null )
8383 {
84- var result = await tool . InvokeAsync ( functionCall . Arguments , cancellationToken ) . ConfigureAwait ( false ) ;
84+ var result = await tool . InvokeAsync ( new AIFunctionArguments ( functionCall . Arguments ) , cancellationToken ) . ConfigureAwait ( false ) ;
8585 if ( result != null )
8686 {
8787 var contents = request . Contents ;
@@ -126,7 +126,7 @@ private async IAsyncEnumerable<ChatResponseUpdate> CallFunctionStreamingAsync(Ge
126126 var tool = ( AIFunction ? ) options . Tools . Where ( s=> s is AIFunction ) . FirstOrDefault ( s=> s . Name == functionCall . Name ) ;
127127 if ( tool != null )
128128 {
129- var result = await tool . InvokeAsync ( functionCall . Arguments , cancellationToken ) . ConfigureAwait ( false ) ;
129+ var result = await tool . InvokeAsync ( new AIFunctionArguments ( functionCall . Arguments ) , cancellationToken ) . ConfigureAwait ( false ) ;
130130 if ( result != null )
131131 {
132132 var contents = request . Contents ;
You can’t perform that action at this time.
0 commit comments