diff --git a/src/agent/commands/actions.js b/src/agent/commands/actions.js index 88e6b9e..19b231e 100644 --- a/src/agent/commands/actions.js +++ b/src/agent/commands/actions.js @@ -49,7 +49,7 @@ export const actionsList = [ agent.actions.cancelResume(); agent.bot.emit('idle'); let msg = 'Agent stopped.'; - if (agent.self_prompter.on) + if (agent.self_prompter.isActive()) msg += ' Self-prompting still active.'; return msg; } @@ -362,8 +362,7 @@ export const actionsList = [ }, perform: async function (agent, prompt) { if (convoManager.inConversation()) { - agent.self_prompter.setPrompt(prompt); - convoManager.scheduleSelfPrompter(); + agent.self_prompter.setPromptPaused(prompt); } else { agent.self_prompter.start(prompt); @@ -375,7 +374,6 @@ export const actionsList = [ description: 'Call when you have accomplished your goal. It will stop self-prompting and the current action. ', perform: async function (agent) { agent.self_prompter.stop(); - convoManager.cancelSelfPrompter(); return 'Self-prompting stopped.'; } },