mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-16 17:40:46 -04:00
overseer v2 1
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
const path = require('path');
|
||||
|
||||
const PROMPT_PATH = path.join(__dirname, '..', '..', '..', 'prompts', 'overseer_control_system.txt');
|
||||
const DEFAULT_NAME = 'The Overseer';
|
||||
const DEFAULT_GATE_INTERVAL_MS = 2000;
|
||||
const DEFAULT_HEARTBEAT_MS = 30000;
|
||||
const MIN_INTERVAL_MS = 250;
|
||||
const MAX_RUN_HISTORY = 100;
|
||||
const MAX_CHAT_CONTEXT = 12;
|
||||
const MAX_BOT_CONTEXT = 2;
|
||||
|
||||
function normalizeMs(value, fallback) {
|
||||
if (!Number.isFinite(value)) return fallback;
|
||||
return Math.max(MIN_INTERVAL_MS, Math.floor(value));
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
PROMPT_PATH,
|
||||
DEFAULT_NAME,
|
||||
DEFAULT_GATE_INTERVAL_MS,
|
||||
DEFAULT_HEARTBEAT_MS,
|
||||
MAX_RUN_HISTORY,
|
||||
MAX_CHAT_CONTEXT,
|
||||
MAX_BOT_CONTEXT,
|
||||
normalizeMs,
|
||||
};
|
||||
Reference in New Issue
Block a user