patch agent invocation regression

resolves #1211
This commit is contained in:
timothycarambat 2024-04-27 12:39:45 -07:00
parent 8eda75d624
commit 5ae20d50ea
1 changed files with 2 additions and 2 deletions

View File

@ -3,9 +3,9 @@ const { v4: uuidv4 } = require("uuid");
const WorkspaceAgentInvocation = {
// returns array of strings with their @ handle.
// must start with @
// must start with @agent for now.
parseAgents: function (promptString) {
if (!promptString.startsWith("@")) return [];
if (!promptString.startsWith("@agent")) return [];
return promptString.split(/\s+/).filter((v) => v.startsWith("@"));
},