agentis
Version:
A TypeScript framework for building sophisticated multi-agent systems
29 lines (28 loc) • 753 B
TypeScript
import { IAgent } from '../agents/IAgent';
import { ITool } from '../tools/ITool';
export declare class TeamBuilder {
private agents;
private roles;
private roleTools;
/**
* Define a role with its capabilities
*/
defineRole(roleName: string, capabilities: string[]): void;
/**
* Associate specific tools with a role
*/
assignToolsToRole(roleName: string, tools: ITool[]): void;
/**
* Get tools assigned to a specific role
*/
private getToolsForRole;
/**
* Create a team of agents based on the provided configuration
*/
createTeam(teamConfig: {
name: string;
roles: string[];
domain: string;
goals: string[];
}): Promise<IAgent[]>;
}