UNPKG

@just-every/task

Version:

Task - A Thoughtful Task Loop

30 lines 1.58 kB
/** * @just-every/task * * Task - Advanced LLM orchestration with meta-cognition * * This module provides the Task system which includes: * - Hierarchical model selection based on performance scores * - Meta-cognition for self-reflection and strategy adjustment * - Thought delay management for pacing * - Memory integration for learning from past tasks */ // ============================================================================ // Main API - Single simple interface // ============================================================================ export { // The one and only function you need runTask, // Add messages to an active task addMessageToTask, } from './src/core/engine.js'; // ============================================================================ // State Management (for debugging/monitoring) // ============================================================================ export { taskState, resetLLMRequestCount, set_meta_frequency, set_model_score, getModelScore, disable_model, listDisabledModels, listModelScores } from './src/state/state.js'; export { setThoughtDelay, getThoughtDelay } from './src/core/thought_utils.js'; // ============================================================================ // Pause Control (from ensemble) // ============================================================================ export { pause, resume, isPaused, getPauseController, waitWhilePaused } from '@just-every/ensemble'; // That's it! Just use runTask(agent, content) and everything else is automatic. //# sourceMappingURL=index.js.map