@polybiouslabs/polybious
Version:
Polybius is a next-generation intelligent agent framework built for adaptability across diverse domains. It merges contextual awareness, multi-agent collaboration, and predictive reasoning to deliver dynamic, self-optimizing performance.
22 lines (21 loc) • 912 B
TypeScript
import type { ToolConfig, ToolHandler, ToolUsageStats } from '../types/agent.types';
export declare class ToolRegistryManager {
private registry;
private executionHistory;
private enabledTools;
constructor(enabledTools?: string[]);
private initializeBuiltinTools;
registerTool(config: ToolConfig, handler: ToolHandler): void;
executeTool(toolName: string, parameters: Record<string, any>): Promise<any>;
private updateUsageStats;
private recordExecution;
private getRecentCalls;
getAvailableTools(): string[];
getToolConfig(toolName: string): ToolConfig | null;
getToolStats(toolName: string): ToolUsageStats | null;
getAllStats(): Record<string, ToolUsageStats>;
getExecutionHistory(toolName: string, limit?: number): any[];
enableTool(toolName: string): void;
disableTool(toolName: string): void;
clearHistory(toolName?: string): void;
}