patch agent invocation regression

resolves 
This commit is contained in:
timothycarambat 2024-04-27 12:39:45 -07:00
parent 8eda75d624
commit 5ae20d50ea

View file

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