UNPKG

@memberjunction/ng-ai-test-harness

Version:

MemberJunction AI Test Harness - A reusable component for testing AI agents and prompts with beautiful UX

59 lines 2.13 kB
import { ApplicationRef, Injector, ViewContainerRef } from '@angular/core'; import { MJAIAgentEntityExtended, MJAIPromptEntityExtended } from '@memberjunction/ai-core-plus'; import { Observable } from 'rxjs'; import { TestResult } from './test-harness-window.service'; import { WindowDockService } from './window-dock.service'; import * as i0 from "@angular/core"; /** * Service for managing test harness windows for AI Agents and AI Prompts. * Creates Kendo Window components with custom titlebar including minimize button. */ export declare class TestHarnessWindowManagerService { private appRef; private injector; private dockService; private openWindows; private windowCounter; constructor(appRef: ApplicationRef, injector: Injector, dockService: WindowDockService); /** * Opens the AI Agent Test Harness in a window */ openAgentTestHarness(options: { agentId?: string; agent?: MJAIAgentEntityExtended; title?: string; width?: string | number; height?: string | number; initialDataContext?: Record<string, any>; initialTemplateData?: Record<string, any>; viewContainerRef?: ViewContainerRef; }): Observable<TestResult>; /** * Opens the AI Prompt Test Harness in a window */ openPromptTestHarness(options: { promptId?: string; prompt?: MJAIPromptEntityExtended; title?: string; width?: string | number; height?: string | number; initialTemplateVariables?: Record<string, any>; selectedModelId?: string; viewContainerRef?: ViewContainerRef; }): Observable<TestResult>; /** * Creates a test harness window */ private createWindow; /** * Closes a specific window */ private closeWindow; /** * Closes all open windows */ closeAllWindows(): void; static ɵfac: i0.ɵɵFactoryDeclaration<TestHarnessWindowManagerService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<TestHarnessWindowManagerService>; } //# sourceMappingURL=test-harness-window-manager.service.d.ts.map