INNER CODE UNIT · JavaScript

LEARNING_BROADCAST_MS

3cqs-coder/SymBot · libs/app/Hub/Main.js:12

const LEARNING_BROADCAST_MS = 300000; // push the pooled learning pack to instances every 5 min

// Build the current pooled learning pack from the Hub store, or null if there is nothing
// to send. Shared by the on-online push and the periodic broadcast.
function buildHubLearningPack() {

	try {

		if (!shareData.HubStore || typeof shareData.HubStore.listLearningPatterns !== 'function') { return null; }

		const patterns = shareData.HubStore.listLearningPatterns();
		if (!patterns.length) { return null; }

		return aiMemory.buildPack(patterns, { source: 'hub', created: Date.now() });
	}
	catch (e) { return null; }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…