mirror of
https://github.com/Mintplex-Labs/anything-llm.git
synced 2025-04-23 13:08:11 +00:00
parent
8eda75d624
commit
5ae20d50ea
1 changed files with 2 additions and 2 deletions
|
@ -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("@"));
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue