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