1 write to FunctionCall
Microsoft.Extensions.AI.Abstractions (1)
Contents\FunctionApprovalResponseContent.cs (1)
30
FunctionCall
= Throw.IfNull(functionCall);
18 references to FunctionCall
Microsoft.Extensions.AI (10)
ChatCompletion\FunctionInvokingChatClient.cs (10)
1475
_ = approvalRequestCallIds?.Remove(farc.
FunctionCall
.CallId);
1534
if (functionResultCallIds?.Contains(approvalResponse.
FunctionCall
.CallId) is true)
1539
LogProcessingApprovalResponse(approvalResponse.
FunctionCall
.Name, approvalResponse.Approved);
1545
_ = allApprovalRequestsMessages?.TryGetValue(approvalResponse.
FunctionCall
.CallId, out requestMessage);
1563
LogFunctionRejected(m.Response.
FunctionCall
.Name, m.Response.Reason);
1572
m.Response.
FunctionCall
.InvocationRequired = false;
1573
return (AIContent)new FunctionResultContent(m.Response.
FunctionCall
.CallId, result);
1628
currentMessage.Contents.Add(resultWithRequestMessage.Response.
FunctionCall
);
1657
functionCallMessage.Contents = [resultWithRequestMessage.Response.
FunctionCall
];
1803
originalMessages, options, notInvokedApprovals.Select(x => x.Response.
FunctionCall
).ToList(), 0, consecutiveErrorCount, isStreaming, cancellationToken);
Microsoft.Extensions.AI.Abstractions.Tests (8)
Contents\FunctionApprovalRequestContentTests.cs (2)
54
Assert.Same(functionCall, response.
FunctionCall
);
75
Assert.Same(functionCall, response.
FunctionCall
);
Contents\FunctionApprovalResponseContentTests.cs (6)
35
Assert.Same(functionCall, content.
FunctionCall
);
55
Assert.NotNull(deserializedContent.
FunctionCall
);
56
Assert.Equal(content.
FunctionCall
.CallId, deserializedContent.
FunctionCall
.CallId);
57
Assert.Equal(content.
FunctionCall
.Name, deserializedContent.
FunctionCall
.Name);