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.

19 lines (18 loc) 722 B
import { Agent } from "./agent.js"; import { Task } from "../tasks/task.js"; export interface DelegationCheckResult { canDelegate: boolean; reason?: string; } export declare function checkDelegationValidity(agent: Agent, task: Task): DelegationCheckResult; export declare function updateDelegationChain(task: Task, agent: Agent): void; /** Basic delegation quality assessment: Outputs starting with DELEGATE(...) and lacking meaningful content are considered weak. If weak, the score is reduced and retry is recommended. */ export interface DelegationScoreResult { isWeak: boolean; reason?: string; score?: number; } export declare function checkDelegationScore(output: string): DelegationScoreResult;