MCPcopy
hub / github.com/TransformerOptimus/SuperAGI / setLocalStorageArray

Function setLocalStorageArray

gui/utils/utils.js:245–249  ·  view source on GitHub ↗
(key, value, stateFunction)

Source from the content-addressed store, hash-verified

243};
244
245export const setLocalStorageArray = (key, value, stateFunction) => {
246 stateFunction(value);
247 const arrayString = JSON.stringify(value);
248 localStorage.setItem(key, arrayString);
249};
250
251const getInternalIds = () => {
252 const internal_ids = localStorage.getItem("agi_internal_ids");

Callers 15

handleIndexSelectFunction · 0.90
handleKeyChangeFunction · 0.90
filterToolsByNamesFunction · 0.90
AgentCreate.jsFile · 0.90
addToolFunction · 0.90
editingAgentFunction · 0.90
fillAdvancedDetailsFunction · 0.90
addToolkitFunction · 0.90
removeToolFunction · 0.90
handleGoalChangeFunction · 0.90
handleInstructionChangeFunction · 0.90
handleConstraintChangeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected