1 write to ModelResponse
Microsoft.Extensions.AI.Evaluation.Console (1)
Commands\ReportCommand.cs (1)
70
result.
ModelResponse
= new ChatResponse();
10 references to ModelResponse
Microsoft.Extensions.AI.Evaluation.Reporting (1)
ScenarioRunResult.cs (1)
135
/// Gets or sets the conversation history including the request that produced the <see cref="
ModelResponse
"/> being
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (9)
ScenarioRunResultTests.cs (3)
103
Assert.Equal(entry.
ModelResponse
, deserialized.
ModelResponse
, ChatResponseComparer.Instance);
196
Assert.Equal(entry.
ModelResponse
, deserialized.ScenarioRunResults[0].ModelResponse, ChatResponseComparer.Instance);
SerializationChainingTests.cs (6)
49
Assert.Single(resp.
ModelResponse
.Messages);
50
Assert.Equal(ChatRole.User, resp.
ModelResponse
.Messages[0].Role);
51
Assert.Equal("A user message", resp.
ModelResponse
.Messages[0].Text);
52
Assert.NotNull(resp.
ModelResponse
.AdditionalProperties);
53
Assert.Equal("gpt-7", resp.
ModelResponse
.AdditionalProperties?["model"]?.ToString());
55
string jsonFromElement = resp.
ModelResponse
.AdditionalProperties?["data"]?.ToString()!;