Compare commits

...

2 Commits

Author SHA1 Message Date
timothycarambat 551c1ab2b2 Merge branch 'master' of github.com:Mintplex-Labs/anything-llm 2024-04-27 12:39:54 -07:00
timothycarambat 5ae20d50ea patch agent invocation regression
resolves #1211
2024-04-27 12:39:45 -07:00
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("@"));
},