agentis
Version:
A TypeScript framework for building sophisticated multi-agent systems
35 lines (34 loc) • 1.35 kB
TypeScript
import { IAgent } from './IAgent';
import { AgentMessage } from './AgentMessage';
import { Task } from './Task';
import { MiddlewareFunction } from '../middleware/AgentMiddleware';
import { EnhancedMemoryClient } from '../memory/EnhancedMemoryClient';
import { ToolRegistry } from '../tools/ToolRegistry';
import { ITool } from '../tools/ITool';
export declare class GoalPlanner implements IAgent {
id: string;
name: string;
lore: string;
role: string;
goals: string[];
shortTermMemory: Record<string, any>;
longTermMemory: Record<string, any>;
tools: ITool[];
private memoryClient;
private toolRegistry;
private middlewares;
constructor(id?: string, name?: string, lore?: string, role?: string, goals?: string[], tools?: ITool[]);
analyzeRequest(message: string, conversationContext: string[]): Promise<{
requiresNewGoal: boolean;
useExistingContext: boolean;
suggestedGoal?: string;
contextualResponse?: string;
}>;
receiveMessage(message: AgentMessage): Promise<AgentMessage>;
executeTask(task: Task): Promise<void>;
sendMessage(message: AgentMessage): Promise<void>;
initializeMemory(): Promise<void>;
useMiddleware(middleware: MiddlewareFunction): void;
getMemoryClient(): EnhancedMemoryClient;
getToolRegistry(): ToolRegistry;
}