MCPcopy Create free account
hub / github.com/Roy3838/Observer / fetchTools

Function fetchTools

app/src/hooks/useIterations.ts:72–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70
71 useEffect(() => {
72 const fetchTools = () => {
73 const latest = IterationStore.getToolsFromLastIteration(agentId);
74
75 if (latest.length !== lastCountRef.current) {
76 lastCountRef.current = latest.length;
77 setTools(latest);
78 }
79 };
80
81 fetchTools();
82 const interval = setInterval(fetchTools, pollInterval);

Callers 1

useLastToolsFunction · 0.85

Calls 1

Tested by

no test coverage detected