JSPM

  • Created
  • Published
  • Downloads 63
  • Score
    100M100P100Q63143F
  • License MIT

Task - A Thoughtful Task Loop

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 { runTask } from "@just-every/task"; import { Agent } from "@just-every/ensemble";

const agent = new Agent({ modelClass: "reasoning" });

const stream = runTask(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.