/** * Task template and role interfaces for POLARIS agents */ /** * Agent role definition with behavioral strategy and perspective */ export interface AgentRole { /** Role identifier */ id: string; /** Human-readable role name */ name: string; /** Goal/objective of this role */ goal: string; /** Behavioral instructions for the agent */ instructions: string; /** Perspective or viewpoint this role should take */ perspective?: string; /** Bias type for this role */ bias?: "aggressive" | "conservative" | "balanced" | "exploratory" | "exploitative"; /** Additional role-specific parameters */ parameters?: Record; } /** * Domain configuration defining the problem area and rules */ export interface DomainConfig { /** Domain identifier */ id: string; /** Human-readable domain name */ name: string; /** Domain description */ description: string; /** Domain-specific rules and constraints */ rules: Record; /** State representation format */ stateFormat?: "json" | "text" | "custom"; /** Action representation format */ actionFormat?: "json" | "text" | "custom"; /** Additional domain-specific configuration */ metadata?: Record; } /** * Main task template that defines the problem, roles, goals, and configuration */ export interface PolarisEngineTask { /** Unique task identifier */ id: string; /** Human-readable task name */ name: string; /** Detailed task description */ description: string; /** Domain this task operates in */ domain: DomainConfig; /** Available roles for agents in this task */ roles: Record; /** Task-specific goals and objectives */ goals: { /** Primary objective */ primary: string; /** Secondary objectives */ secondary?: string[]; /** Success criteria */ successCriteria?: string[]; }; /** Constraints and limitations */ constraints?: { /** Time limits */ timeLimit?: number; /** Resource limits */ resourceLimits?: Record; /** Other constraints */ other?: string[]; }; /** Task-specific configuration */ config?: { /** Evaluation criteria */ evaluationCriteria?: string[]; /** Scoring methodology */ scoringMethod?: "competitive" | "collaborative" | "consensus"; /** Additional task parameters */ parameters?: Record; }; /** Additional task metadata */ metadata?: Record; } /** * Built-in common roles */ export declare const CommonRoles: Record; /** * Built-in common domains */ export declare const CommonDomains: Record; /** * Task builder utility for creating tasks */ export declare class TaskBuilder { private task; static create(id: string, name: string): TaskBuilder; description(description: string): TaskBuilder; domain(domain: DomainConfig): TaskBuilder; commonDomain(domainKey: keyof typeof CommonDomains): TaskBuilder; roles(roles: Record): TaskBuilder; commonRoles(roleKeys: (keyof typeof CommonRoles)[]): TaskBuilder; goals(primary: string, secondary?: string[], successCriteria?: string[]): TaskBuilder; constraints(constraints: PolarisEngineTask["constraints"]): TaskBuilder; config(config: PolarisEngineTask["config"]): TaskBuilder; metadata(metadata: Record): TaskBuilder; build(): PolarisEngineTask; } //# sourceMappingURL=task.d.ts.map