jcrewai
Version:
Multi-agent automation framework written in TypeScript. Patterned after CrewAI.
26 lines (25 loc) • 789 B
TypeScript
import { Crew } from '../Crew';
import { BaseLlm } from '../llms/BaseLlm';
import { Task } from '../Task';
import { AgentConfig } from './AgentConfig';
import { AgentOptions } from './AgentOptions';
import { CrewAgentExecutor } from './CrewAgentExecutor';
export declare abstract class BaseAgent {
private originalRole?;
private originalGoal?;
private originalBackstory?;
id?: string;
config?: AgentConfig;
name?: string;
crew?: Crew;
agentExecutor?: CrewAgentExecutor;
role?: string;
goal?: string;
backstory?: string;
llm?: string | BaseLlm;
i18n?: any;
verbose: boolean;
constructor(options: AgentOptions);
abstract executeTask(task: Task): Promise<string>;
interpolateInputs(inputs?: Record<string, string>): void;
}