mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-03 22:05:35 +02:00
Update actions.js
This commit is contained in:
parent
15eb0fd1c6
commit
37af374de3
1 changed files with 2 additions and 4 deletions
|
@ -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.';
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue