← All demos
BULK SUPPORT TRIAGE
Decisions vs Luna.
Ask the same five questions about every support message. Compare probabilities and measured response times.
95 messages · 475 questions
The selected Decisions model evaluates message groups. Luna uses openai/gpt-6-luna and always evaluates messages one at a time.
Each request sends the chosen number of messages and five questions per message. The final request may contain fewer messages. A value of 95 sends all messages in one request.
View C# example
using DecisionsDotNet;
using var client = OpenRouterDecisionsClient.FromEnvironment();
Message[] messages =
[
new("m001", "I want my money back for last month."),
new("m002", "The export button crashes the app every time."),
// ...the demo sends 95
];
// Packs ItemsPerRequest messages into each request and names each question {itemId}_{key}.
var options = new DecisionsBatchOptions<Message>
{
ItemId = message => message.Id,
State = batch => DecisionsValue.FromObject(new { messages = batch.Select(m => new { id = m.Id, text = m.Text }) }),
Questions = message => new Dictionary<string, DecisionsQuestion>
{
["refund"] = new NoulQuestion($"Does this customer want money back? (message {message.Id})",
new NoulCriteria("Asks for a refund, a credit, or a reversed charge.", "Money is not the ask.")),
["bug"] = new NoulQuestion($"Is this customer reporting something broken? (message {message.Id})",
new NoulCriteria("An error, crash, failure, or wrong behavior.", "A question or request about something that works."))
},
Model = "typesafe/jev-1.14",
ItemsPerRequest = 10
};
await foreach (var batch in client.EvaluateBatchesAsync(messages, options))
{
if (!batch.Succeeded)
{
Console.WriteLine($"Request {batch.Number} failed: {batch.Error!.Message}");
continue;
}
foreach (var message in batch.Items)
Console.WriteLine($"{message.Id}: refund {batch.GetAnswer<NoulAnswer>(message, "refund").Noul:P0}, " +
$"bug {batch.GetAnswer<NoulAnswer>(message, "bug").Noul:P0} ({batch.Elapsed.TotalSeconds:0.0} s)");
}
public sealed record Message(string Id, string Text);