diff --git a/server/models/workspaceAgentInvocation.js b/server/models/workspaceAgentInvocation.js index 4ef56e40e2c9e0a8eedf9bd8eadaae36a0c1c885..b00833754b32c328b77f7017fe698eec4ee890cd 100644 --- a/server/models/workspaceAgentInvocation.js +++ b/server/models/workspaceAgentInvocation.js @@ -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("@")); },