mirror of
https://github.com/NoFxAiOS/nofx.git
synced 2026-07-16 17:12:25 +08:00
Improve NOFXi agent strategy creation flow
This commit is contained in:
@@ -305,6 +305,9 @@ func (a *Agent) executeUnifiedTurnDecision(ctx context.Context, storeUserID stri
|
||||
if decision.TopicIntent == "instant_reply" && a.hasAnyActiveContext(userID) {
|
||||
return a.replyToActiveFlowInstantReply(ctx, userID, lang, text, onEvent), true, nil
|
||||
}
|
||||
if guarded, blocked := guardUnsupportedAsyncPromise(lang, decision.ReplyToUser); blocked {
|
||||
decision.ReplyToUser = guarded
|
||||
}
|
||||
emitBrainReply(onEvent, decision.ReplyToUser)
|
||||
a.recordSkillInteraction(userID, text, decision.ReplyToUser)
|
||||
a.runPostResponseMaintenanceAsync(userID)
|
||||
|
||||
Reference in New Issue
Block a user