try this for word of the day
This commit is contained in:
@@ -45,44 +45,46 @@ public sealed class ResponsePlanToSocketMessagesMapper
|
|||||||
? ["main-menu/execute_fun_stuff"]
|
? ["main-menu/execute_fun_stuff"]
|
||||||
: isYesNoTurn && isYesNoIntent ? [yesNoCreateRule!] : rules;
|
: isYesNoTurn && isYesNoIntent ? [yesNoCreateRule!] : rules;
|
||||||
var entities = ReadEntities(turn, messageType, isYesNoTurn && isYesNoIntent, isWordOfDayLaunch, isWordOfDayGuess, wordOfDayGuess);
|
var entities = ReadEntities(turn, messageType, isYesNoTurn && isYesNoIntent, isWordOfDayLaunch, isWordOfDayGuess, wordOfDayGuess);
|
||||||
var messages = new List<SocketReplyPlan>
|
var messages = new List<SocketReplyPlan>();
|
||||||
|
|
||||||
|
if (!isWordOfDayLaunch)
|
||||||
{
|
{
|
||||||
new(JsonSerializer.Serialize(new
|
messages.AddRange(new SocketReplyPlan(JsonSerializer.Serialize(new
|
||||||
{
|
|
||||||
type = "LISTEN",
|
|
||||||
transID = transId,
|
|
||||||
data = new
|
|
||||||
{
|
{
|
||||||
asr = new
|
type = "LISTEN",
|
||||||
|
transID = transId,
|
||||||
|
data = new
|
||||||
{
|
{
|
||||||
confidence = 0.95,
|
asr = new
|
||||||
final = true,
|
{
|
||||||
text = outboundAsrText
|
confidence = 0.95,
|
||||||
},
|
final = true,
|
||||||
nlu = new
|
text = outboundAsrText
|
||||||
{
|
},
|
||||||
confidence = 0.95,
|
nlu = new
|
||||||
intent = outboundIntent,
|
{
|
||||||
rules = outboundRules,
|
confidence = 0.95,
|
||||||
entities
|
intent = outboundIntent,
|
||||||
},
|
rules = outboundRules,
|
||||||
match = new
|
entities
|
||||||
{
|
},
|
||||||
intent = outboundIntent,
|
match = new
|
||||||
rule = outboundRules.FirstOrDefault() ?? string.Empty,
|
{
|
||||||
score = 0.95
|
intent = outboundIntent,
|
||||||
|
rule = outboundRules.FirstOrDefault() ?? string.Empty,
|
||||||
|
score = 0.95
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
})),
|
||||||
})),
|
new SocketReplyPlan(JsonSerializer.Serialize(new
|
||||||
new(JsonSerializer.Serialize(new
|
{
|
||||||
{
|
type = "EOS",
|
||||||
type = "EOS",
|
ts = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(),
|
||||||
ts = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(),
|
msgID = CreateHubMessageId(),
|
||||||
msgID = CreateHubMessageId(),
|
transID = transId,
|
||||||
transID = transId,
|
data = new { }
|
||||||
data = new { }
|
})));
|
||||||
}))
|
}
|
||||||
};
|
|
||||||
|
|
||||||
if (emitSkillActions && speak is not null)
|
if (emitSkillActions && speak is not null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user