Package Exports
- @just-every/task
Readme
@just-every/task
Task adds meta-cognition, adaptive model rotation and cost tracking to your @just-every/ensemble agents in a single call.
βΈ»
π Quick install
npm install @just-every/task
βΈ»
π One-minute setup
Set your LLM keys (any you have will do):
export OPENAI_API_KEY="β¦" export ANTHROPIC_API_KEY="β¦" export GOOGLE_API_KEY="β¦"
βΈ»
β‘ Hello Task
import { mindTask } from "@just-every/task"; import { Agent } from "@just-every/ensemble";
const agent = new Agent({ modelClass: "reasoning" });
const stream = mindTask(agent, "Review this function: function add(a, b) { return a + b; }" );
Task picks the best model, runs until the task is done, and logs every decision.
βΈ»
π― Why Task? β’ Auto model rotation β performance-based, cost-aware. β’ Meta-cognition β agents reflect & self-correct. β’ Tool wiring β any Ensemble tool, zero boilerplate. β’ Cost tracker β live totals across providers. β’ Tiny API β one function, sensible defaults.
βΈ»
π§ Model classes
Class Typical use-cases reasoning Logic, multi-step problems code Code review & generation standard Writing, Q&A, summaries
Set modelClass and let Mind handle the rest.
βΈ»
π Docs & examples β’ Examples β ./examples/* β’ API Reference β /docs/api.md
βΈ»
π License
MIT β hack away.