14 instantiations of SemanticRoutingChatClient
Microsoft.Extensions.AI.Tests (14)
ChatRouting\SemanticRoutingChatClientTests.cs (14)
27
new
SemanticRoutingChatClient
(null!, profiles, client));
29
new
SemanticRoutingChatClient
(generator, null!, client));
31
new
SemanticRoutingChatClient
(generator, profiles, null!));
33
new
SemanticRoutingChatClient
(
38
new
SemanticRoutingChatClient
(
46
new
SemanticRoutingChatClient
(
54
new
SemanticRoutingChatClient
(generator, profiles, client, scoreThreshold: 1.1f));
56
new
SemanticRoutingChatClient
(generator, profiles, client, topK: 0));
58
new
SemanticRoutingChatClient
(
64
new
SemanticRoutingChatClient
(
112
using var router = new
SemanticRoutingChatClient
(
161
using var router = new
SemanticRoutingChatClient
(
203
using var router = new
SemanticRoutingChatClient
(
227
var router = new
SemanticRoutingChatClient
(generator, profiles, defaultClient);
11 references to SemanticRoutingChatClient
Microsoft.Extensions.AI (1)
ChatRouting\SemanticRoutingChatClient.cs (1)
59
/// <summary>Initializes a new instance of the <see cref="
SemanticRoutingChatClient
"/> class.</summary>
Microsoft.Extensions.AI.Tests (10)
ChatRouting\SemanticRoutingChatClientTests.cs (10)
62
scoreAggregation: (
SemanticRoutingChatClient
.ScoreAggregation)(-1)));
70
scoreAggregation:
SemanticRoutingChatClient
.ScoreAggregation.Sum));
112
using
var
router = new SemanticRoutingChatClient(
127
[InlineData(
SemanticRoutingChatClient
.ScoreAggregation.Mean, "code")]
128
[InlineData(
SemanticRoutingChatClient
.ScoreAggregation.Sum, "writing")]
130
SemanticRoutingChatClient
.ScoreAggregation scoreAggregation,
161
using
var
router = new SemanticRoutingChatClient(
165
scoreThreshold: scoreAggregation ==
SemanticRoutingChatClient
.ScoreAggregation.Sum ? 1.5f : 0.3f,
203
using
var
router = new SemanticRoutingChatClient(
227
var
router = new SemanticRoutingChatClient(generator, profiles, defaultClient);