MCPcopy Index your code
hub / github.com/FlowiseAI/Flowise / sanitizeAssistant

Function sanitizeAssistant

packages/ui/src/utils/exportImport.js:53–67  ·  view source on GitHub ↗
(Assistant)

Source from the content-addressed store, hash-verified

51}
52
53const sanitizeAssistant = (Assistant) => {
54 try {
55 return Assistant.map((assistant) => {
56 return {
57 id: assistant.id,
58 details: assistant.details,
59 credential: assistant.credential,
60 iconSrc: assistant.iconSrc,
61 type: assistant.type
62 }
63 })
64 } catch (error) {
65 throw new Error(`exportImport.sanitizeAssistant ${getErrorMessage(error)}`)
66 }
67}
68
69const sanitizeCustomTemplate = (CustomTemplate) => {
70 try {

Callers 1

exportDataFunction · 0.85

Calls 1

getErrorMessageFunction · 0.90

Tested by

no test coverage detected