1 write to FunctionCall
Microsoft.Extensions.AI.Abstractions (1)
Contents\FunctionApprovalRequestContent.cs (1)
27FunctionCall = Throw.IfNull(functionCall);
14 references to FunctionCall
Microsoft.Extensions.AI (1)
ChatCompletion\FunctionInvokingChatClient.cs (1)
1331_ = (approvalRequestCallIds ??= []).Add(farc.FunctionCall.CallId);
Microsoft.Extensions.AI.Abstractions (1)
Contents\FunctionApprovalRequestContent.cs (1)
41public FunctionApprovalResponseContent CreateResponse(bool approved, string? reason = null) => new(Id, approved, FunctionCall) { Reason = reason };
Microsoft.Extensions.AI.Abstractions.Tests (6)
Contents\FunctionApprovalRequestContentTests.cs (6)
36Assert.Same(functionCall, content.FunctionCall); 89Assert.NotNull(deserializedContent.FunctionCall); 90Assert.Equal(content.FunctionCall.CallId, deserializedContent.FunctionCall.CallId); 91Assert.Equal(content.FunctionCall.Name, deserializedContent.FunctionCall.Name);
Microsoft.Extensions.AI.Tests (6)
ChatCompletion\FunctionInvokingChatClientApprovalsTests.cs (6)
1088Assert.Equal("callId1", approvalRequest1.FunctionCall.CallId); 1089Assert.Equal("Func1", approvalRequest1.FunctionCall.Name); 1096Assert.Equal("callId2", approvalRequest2.FunctionCall.CallId); 1097Assert.Equal("Func2", approvalRequest2.FunctionCall.Name); 1104Assert.Equal("callId1", approvalRequest3.FunctionCall.CallId); 1105Assert.Equal("Func3", approvalRequest3.FunctionCall.Name);