1 write to Contents
Microsoft.Extensions.AI.Evaluation (1)
EvaluationContext.cs (1)
112Contents = [.. contents];
15 references to Contents
Microsoft.Extensions.AI.Evaluation (9)
EvaluationContext.cs (9)
27/// However, the expectation is that the <see cref="Contents"/> property will always return a collection of 38/// <see cref="Contents"/> will be serialized. Any information that is (only) present in custom derived 41/// <see cref="Contents"/> property returns a collection of <see cref="AIContent"/>s that represent <b>all</b> the 76/// needed. However, the expectation is that the <see cref="Contents"/> property will always return a collection of 87/// <see cref="EvaluationContext"/>, only the information captured within <see cref="Contents"/> will be 91/// <see cref="Contents"/> property returns a collection of <see cref="AIContent"/>s that represent <b>all</b> the 107/// The contents of the <see cref="EvaluationContext"/>. (See <see cref="Contents"/>.) 120/// The contents of the <see cref="EvaluationContext"/>. (See <see cref="Contents"/>.) 132/// The content of the <see cref="EvaluationContext"/>. (See <see cref="Contents"/>.)
Microsoft.Extensions.AI.Evaluation.Reporting (1)
JsonSerialization\EvaluationContextConverter.cs (1)
91JsonSerializer.Serialize(writer, value.Contents, contentsTypeInfo);
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (4)
ScenarioRunResultTests.cs (4)
337if (x?.Contents.Count != y?.Contents.Count) 342if (x?.Contents is IList<AIContent> xContents && y?.Contents is IList<AIContent> yContents)
Microsoft.Extensions.AI.Evaluation.Safety (1)
ContentSafetyEvaluator.cs (1)
120relevantContext.SelectMany(c => c.Contents) is IEnumerable<AIContent> contents && contents.Any() &&