1 write to FunctionCall
Microsoft.Extensions.AI.Abstractions (1)
Contents\FunctionApprovalResponseContent.cs (1)
30FunctionCall = Throw.IfNull(functionCall);
17 references to FunctionCall
Microsoft.Extensions.AI (9)
ChatCompletion\FunctionInvokingChatClient.cs (9)
1601_ = approvalRequestCallIds?.Remove(farc.FunctionCall.CallId); 1660if (functionResultCallIds?.Contains(approvalResponse.FunctionCall.CallId) is true) 1665LogProcessingApprovalResponse(approvalResponse.FunctionCall.Name, approvalResponse.Approved); 1689LogFunctionRejected(m.Response.FunctionCall.Name, m.Response.Reason); 1698m.Response.FunctionCall.InformationalOnly = true; 1699return (AIContent)new FunctionResultContent(m.Response.FunctionCall.CallId, result); 1754currentMessage.Contents.Add(resultWithRequestMessage.Response.FunctionCall); 1783functionCallMessage.Contents = [resultWithRequestMessage.Response.FunctionCall]; 1929originalMessages, options, notInvokedApprovals.Select(x => x.Response.FunctionCall).ToList(), 0, consecutiveErrorCount, isStreaming, cancellationToken);
Microsoft.Extensions.AI.Abstractions.Tests (8)
Contents\FunctionApprovalRequestContentTests.cs (2)
54Assert.Same(functionCall, response.FunctionCall); 75Assert.Same(functionCall, response.FunctionCall);
Contents\FunctionApprovalResponseContentTests.cs (6)
35Assert.Same(functionCall, content.FunctionCall); 55Assert.NotNull(deserializedContent.FunctionCall); 56Assert.Equal(content.FunctionCall.CallId, deserializedContent.FunctionCall.CallId); 57Assert.Equal(content.FunctionCall.Name, deserializedContent.FunctionCall.Name);