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.

36 lines (35 loc) 1.08 kB
import { OutputFormat } from "../configs/enum.js"; export interface ExecutionContext { delegationChain?: string[]; [key: string]: any; } export interface ITask { id: string; name: string; description: string; outputFormat: OutputFormat | string; agent: string; expectedRole?: string; inputFromTask?: string; __replanReasonUsed?: boolean; /** * (Internal use) Optional override for automatic output-to-input mapping. * Normally, this is handled by the framework and should not be set manually. */ inputMapper?: (output: string, context?: Record<string, any>) => any; executionContext?: ExecutionContext; } export declare class Task { id: string; name: string; description: string; outputFormat: OutputFormat | string; agent: string; expectedRole?: string; inputFromTask?: string; inputMapper?: (output: string, context?: Record<string, any>) => any; executionContext?: ExecutionContext; __replanReasonUsed?: boolean; constructor(task: ITask); private autoDetectMapper; }