1 write to AgentPerceivedIntent
Microsoft.Extensions.AI.Evaluation.Quality (1)
IntentResolutionRating.cs (1)
69
AgentPerceivedIntent
= agentPerceivedIntent;
11 references to AgentPerceivedIntent
Microsoft.Extensions.AI.Evaluation.Quality (2)
IntentResolutionEvaluator.cs (2)
391
if (!string.IsNullOrWhiteSpace(rating.
AgentPerceivedIntent
))
393
metric.AddOrUpdateMetadata("agent_perceived_intent", rating.
AgentPerceivedIntent
!);
Microsoft.Extensions.AI.Evaluation.Tests (9)
IntentResolutionRatingTests.cs (9)
33
Assert.Equal("provide a comprehensive chocolate cake recipe", rating.
AgentPerceivedIntent
);
65
Assert.Equal("provide a comprehensive chocolate cake recipe", rating.
AgentPerceivedIntent
);
97
Assert.Equal("provide a comprehensive chocolate cake recipe", rating.
AgentPerceivedIntent
);
123
Assert.Equal(rating.
AgentPerceivedIntent
, deserialized.
AgentPerceivedIntent
);
141
Assert.Equal(rating.
AgentPerceivedIntent
, deserialized.
AgentPerceivedIntent
);
233
Assert.Equal("provide a comprehensive chocolate cake recipe", rating.
AgentPerceivedIntent
);
262
Assert.Equal("provide a comprehensive chocolate cake recipe", rating.
AgentPerceivedIntent
);