12 writes to InformationalOnly
Microsoft.Extensions.AI (4)
ChatCompletion\FunctionInvokingChatClient.cs (4)
916fcc.InformationalOnly = true; 961functionCallContents[i].InformationalOnly = true; 1255callContent.InformationalOnly = true; 1698m.Response.FunctionCall.InformationalOnly = true;
Microsoft.Extensions.AI.Abstractions.Tests (3)
Contents\FunctionCallContentTests.cs (3)
77c.InformationalOnly = true; 89InformationalOnly = informationalOnly 148var original = new FunctionCallContent("callId1", "functionName") { InformationalOnly = informationalOnly };
Microsoft.Extensions.AI.Tests (5)
ChatCompletion\FunctionInvokingChatClientApprovalsTests.cs (1)
1134var alreadyProcessedFunctionCall = new FunctionCallContent("callId1", "Func1") { InformationalOnly = true };
ChatCompletion\FunctionInvokingChatClientTests.cs (4)
2022var alreadyProcessedFunctionCall = new FunctionCallContent("callId1", "Func1") { InformationalOnly = true }; 2074var needsProcessing = new FunctionCallContent("callId1", "Func1") { InformationalOnly = false }; 2075var alreadyProcessed = new FunctionCallContent("callId2", "Func2") { InformationalOnly = true }; 2320InformationalOnly = fcc.InformationalOnly,
20 references to InformationalOnly
Microsoft.Extensions.AI (6)
ChatCompletion\FunctionInvokingChatClient.cs (6)
869if (content[i] is FunctionCallContent functionCall && !functionCall.InformationalOnly) 880/// Marks any <see cref="FunctionCallContent"/> in <paramref name="messages"/> as <see cref="FunctionCallContent.InformationalOnly"/> 914if (contents[j] is FunctionCallContent fcc && !fcc.InformationalOnly && resultCallIds.Contains(fcc.CallId)) 923/// Marks any <see cref="FunctionCallContent"/> in the streaming <paramref name="updates"/> as <see cref="FunctionCallContent.InformationalOnly"/> 1837if (content[i] is FunctionCallContent fcc && !fcc.InformationalOnly) 1868if (content[j] is FunctionCallContent functionCall && !functionCall.InformationalOnly)
Microsoft.Extensions.AI.Abstractions.Tests (8)
Contents\FunctionCallContentTests.cs (8)
31Assert.False(c.InformationalOnly); 76Assert.False(c.InformationalOnly); 78Assert.True(c.InformationalOnly); 126Assert.Equal(informationalOnly, deserialized.InformationalOnly); 139Assert.False(deserialized.InformationalOnly); 155Assert.Equal(original.InformationalOnly, deserialized.InformationalOnly); 156Assert.Equal(informationalOnly, deserialized.InformationalOnly);
Microsoft.Extensions.AI.Tests (6)
ChatCompletion\FunctionInvokingChatClientTests.cs (6)
2007Assert.True(functionCallContent.InformationalOnly); 2052Assert.Contains(response.Messages, m => m.Contents.Any(c => c is FunctionCallContent fcc && fcc.InformationalOnly)); 2169Assert.Contains(response.Messages, m => m.Contents.Any(c => c is FunctionCallContent fcc && fcc.CallId == "callId1" && fcc.InformationalOnly)); 2320InformationalOnly = fcc.InformationalOnly, 3489m.Contents.Any(c => c is FunctionCallContent fcc2 && fcc2.CallId == "callId1" && fcc2.InformationalOnly)); 3567m.Contents.Any(c => c is FunctionCallContent fcc2 && fcc2.CallId == "callId1" && fcc2.InformationalOnly));