10 writes to InvocationRequired
Microsoft.Extensions.AI (2)
ChatCompletion\FunctionInvokingChatClient.cs (2)
1129callContent.InvocationRequired = false; 1572m.Response.FunctionCall.InvocationRequired = false;
Microsoft.Extensions.AI.Abstractions.Tests (3)
Contents\FunctionCallContentTests.cs (3)
77c.InvocationRequired = false; 89InvocationRequired = invocationRequired 148var original = new FunctionCallContent("callId1", "functionName") { InvocationRequired = invocationRequired };
Microsoft.Extensions.AI.Tests (5)
ChatCompletion\FunctionInvokingChatClientApprovalsTests.cs (1)
1134var alreadyProcessedFunctionCall = new FunctionCallContent("callId1", "Func1") { InvocationRequired = false };
ChatCompletion\FunctionInvokingChatClientTests.cs (4)
1965var alreadyProcessedFunctionCall = new FunctionCallContent("callId1", "Func1") { InvocationRequired = false }; 2017var needsProcessing = new FunctionCallContent("callId1", "Func1") { InvocationRequired = true }; 2018var alreadyProcessed = new FunctionCallContent("callId2", "Func2") { InvocationRequired = false }; 2263InvocationRequired = fcc.InvocationRequired,
15 references to InvocationRequired
Microsoft.Extensions.AI (3)
ChatCompletion\FunctionInvokingChatClient.cs (3)
831if (content[i] is FunctionCallContent functionCall && functionCall.InvocationRequired) 1711if (content[i] is FunctionCallContent fcc && fcc.InvocationRequired) 1742if (content[j] is FunctionCallContent functionCall && functionCall.InvocationRequired)
Microsoft.Extensions.AI.Abstractions.Tests (8)
Contents\FunctionCallContentTests.cs (8)
31Assert.True(c.InvocationRequired); 76Assert.True(c.InvocationRequired); 78Assert.False(c.InvocationRequired); 126Assert.Equal(invocationRequired, deserialized.InvocationRequired); 139Assert.True(deserialized.InvocationRequired); 155Assert.Equal(original.InvocationRequired, deserialized.InvocationRequired); 156Assert.Equal(invocationRequired, deserialized.InvocationRequired);
Microsoft.Extensions.AI.Tests (4)
ChatCompletion\FunctionInvokingChatClientTests.cs (4)
1950Assert.False(functionCallContent.InvocationRequired); 1995Assert.Contains(response.Messages, m => m.Contents.Any(c => c is FunctionCallContent fcc && !fcc.InvocationRequired)); 2112Assert.Contains(response.Messages, m => m.Contents.Any(c => c is FunctionCallContent fcc && fcc.CallId == "callId1" && !fcc.InvocationRequired)); 2263InvocationRequired = fcc.InvocationRequired,