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.
18 lines (17 loc) • 705 B
TypeScript
import { TaskForce } from "../../engine/taskForce.js";
import { Tool } from "../base/baseTool.js";
export declare class ToolExecutor {
private tools;
private taskForce?;
private agentName?;
private cache;
constructor(tools: Tool[], taskForce?: TaskForce | undefined, agentName?: string | undefined);
setTaskForce(taskForce: TaskForce): void;
getTools(): Tool[];
getToolNameById(toolId: string): string | undefined;
buildToolUsageExamples(tools: Tool[]): string;
private buildDetailedParameterBlock;
private buildExampleUsage;
isValidInput(input: any, schema: Tool["inputSchema"]): boolean;
executeToolById(toolId: string, args: any): Promise<string>;
}