MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / updateParams

Function updateParams

yaml-flow-editor/src/components/NodeConfigPanel.tsx:298–305  ·  view source on GitHub ↗
(index: number, value: string)

Source from the content-addressed store, hash-verified

296 };
297
298 const updateParams = (index: number, value: string) => {
299 const params = parseYamlParams(value);
300 if (params !== null) {
301 const updated = [...paramsList];
302 updated[index] = params;
303 handleChange('parameters_list', updated);
304 }
305 };
306
307 const removeParams = (index: number) => {
308 const updated = paramsList.filter((_, i) => i !== index);

Callers 1

renderParallelParamsFunction · 0.85

Calls 2

handleChangeFunction · 0.85
parseYamlParamsFunction · 0.70

Tested by

no test coverage detected