Skip to content
Snippets Groups Projects
Commit 5ae20d50 authored by timothycarambat's avatar timothycarambat
Browse files

patch agent invocation regression

resolves #1211
parent 8eda75d6
No related branches found
No related tags found
No related merge requests found
...@@ -3,9 +3,9 @@ const { v4: uuidv4 } = require("uuid"); ...@@ -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("@"));
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment