UNPKG

taskforce-aiagent

Version:

TaskForce is a modular, open-source, production-ready TypeScript agent framework for orchestrating AI agents, LLM-powered autonomous agents, task pipelines, dynamic toolchains, RAG workflows and memory/retrieval systems.

29 lines (28 loc) 932 B
import { Agent } from "./agent.js"; import { Task } from "../tasks/task.js"; export declare class SmartManagerAgent extends Agent { private taskEvaluationHistory; planTasks(tasks: Task[], context: Record<string, any>): Promise<Task[]>; decomposeTask(mainTask: Task, subAgents: Agent[], verbose: boolean): Promise<{ id: string; name: string; description: string; agent: string; }[]>; assignAgent(task: Task, agents: Agent[]): Promise<Agent>; evaluateTaskOutput(task: Task, output: string, agents: Agent[]): Promise<{ action: "accept"; } | { action: "retry"; retryWith?: Agent; reason?: string; } | { action: "delegate"; delegateTo: Agent; reason: string; }>; reviewFinalOutput(finalContext: Record<string, any>): Promise<{ action: "accept" | "replan" | "abort"; reason?: string; }>; }