Skip to content
Snippets Groups Projects
Unverified Commit 9c00db7d authored by Timothy Carambat's avatar Timothy Carambat Committed by GitHub
Browse files

patch agent invocation rule (#1175)

parent 2543e8df
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,9 @@ const { v4: uuidv4 } = require("uuid");
const WorkspaceAgentInvocation = {
// returns array of strings with their @ handle.
// must start with @
parseAgents: function (promptString) {
if (!promptString.startsWith("@")) return [];
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