File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -189,12 +189,12 @@ object FunctionResultToObject(IList<AIContent> toolContents)
189189
190190 private static string FormatFunctionCallContent ( FunctionCallContent [ ] content )
191191 {
192- return JsonSerializer . Serialize ( content . Select ( c =>
192+ return JsonSerializer . Serialize ( content . Select ( functionCallContent =>
193193 {
194194 string argumentsJson ;
195195 try
196196 {
197- argumentsJson = JsonSerializer . Serialize ( c . Arguments ) ;
197+ argumentsJson = JsonSerializer . Serialize ( functionCallContent . Arguments ) ;
198198 }
199199 catch
200200 {
@@ -203,7 +203,7 @@ private static string FormatFunctionCallContent(FunctionCallContent[] content)
203203
204204 return new
205205 {
206- name = c . Name ,
206+ name = functionCallContent . Name ,
207207 type = "function_call" ,
208208 arguments = argumentsJson
209209 } ;
You can’t perform that action at this time.
0 commit comments