UNPKG

@just-every/task

Version:

Task - A Thoughtful Task Loop

41 lines 1.97 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, // Resume a task from a previous state resumeTask, // Add messages to an active task addMessageToTask, } from './src/core/engine.js'; // ============================================================================ // State Management (for debugging/monitoring) // ============================================================================ export { setThoughtDelay, getThoughtDelay } from './src/core/thought_utils.js'; // ============================================================================ // Pause Control (from ensemble) // ============================================================================ export { pause, resume, isPaused, getPauseController, waitWhilePaused } from '@just-every/ensemble'; // ============================================================================ // Metamemory (for conversation compaction) // ============================================================================ export { // Main class and functions Metamemory } from './src/metamemory/index.js'; // ============================================================================ // Utilities // ============================================================================ export { approximateTokens } from './src/utils/index.js'; // That's it! Just use runTask(agent, content) and everything else is automatic. //# sourceMappingURL=index.js.map