1 write to FunctionCall
Microsoft.Extensions.AI.Abstractions (1)
Contents\FunctionApprovalResponseContent.cs (1)
29
FunctionCall
= Throw.IfNull(functionCall);
9 references to FunctionCall
Microsoft.Extensions.AI (7)
ChatCompletion\FunctionInvokingChatClient.cs (7)
1291
_ = approvalRequestCallIds?.Remove(farc.
FunctionCall
.CallId);
1350
if (functionResultCallIds?.Contains(approvalResponse.
FunctionCall
.CallId) is true)
1359
_ = allApprovalRequestsMessages?.TryGetValue(approvalResponse.
FunctionCall
.CallId, out requestMessage);
1375
rejections.ConvertAll(static m => (AIContent)new FunctionResultContent(m.Response.
FunctionCall
.CallId, "Error: Tool call invocation was rejected by user.")) :
1416
currentMessage.Contents.Add(resultWithRequestMessage.Response.
FunctionCall
);
1446
functionCallMessage.Contents = [resultWithRequestMessage.Response.
FunctionCall
];
1602
originalMessages, options, toolMap, notInvokedApprovals.Select(x => x.Response.
FunctionCall
).ToList(), 0, consecutiveErrorCount, isStreaming, cancellationToken);
Microsoft.Extensions.AI.Abstractions.Tests (2)
Contents\FunctionApprovalRequestContentTests.cs (1)
52
Assert.Same(functionCall, response.
FunctionCall
);
Contents\FunctionApprovalResponseContentTests.cs (1)
34
Assert.Same(functionCall, content.
FunctionCall
);