import * as i0 from '@angular/core'; import { OnInit, OnDestroy, Type, EventEmitter, OnChanges, SimpleChanges } from '@angular/core'; import { ClientAgentDefinition, ToolResult, AIMessageStreamSteps, AgentStep, AIMessage } from '@c8y/ngx-components/ai'; import { BehaviorSubject, OperatorFunction } from 'rxjs'; declare class AgentChatComponent implements OnInit, OnDestroy { private _agent; set agent(value: string | ClientAgentDefinition); suggestions: { label: string; prompt: string; icon?: string; }[]; title: string; headline: string; welcomeText: string; autoInstallAgents: boolean; variables: {}; stepRenderComponent: Type; onMessageDelta: EventEmitter; onMessageText: EventEmitter; onMessageFinish: EventEmitter; onToolResult: EventEmitter; isLoading: boolean; /** * A stream of AI messages representing the conversation. */ messages$: BehaviorSubject; agentName: string; agentDefinition: ClientAgentDefinition | undefined; hasError: boolean; canCreate: boolean; errorMsg: string; prompt: string; private aiService; private gainsightService; private alertService; private pluginContextPath; private appState; private abortController; private assistantSubscription; private get currentContextPath(); defaultAgentStepRendererPipe: OperatorFunction | string; origin: AgentStep; }[]>; ngOnInit(): Promise; sendMessage(message: AIMessage): Promise; ngOnDestroy(): void; reprompt(userMessage: AIMessageStreamSteps): void; rate(assistantMessage: AIMessageStreamSteps, positive: any): void; reload(assistantMessage: AIMessageStreamSteps): void; cancel(): Promise; createAgent(): Promise; private composeErrorMessage; private processAgentMessage; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class AgentStepFeedbackComponent implements OnInit, OnChanges { step: AgentStep; label: string; loading: boolean; collapsed: boolean; canCollapse: boolean; ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; parseDefaultAgentStep(step: AgentStep): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class WidgetAiChatSectionComponent implements OnInit { suggestions: Array<{ label: string; prompt: string; }>; agent: string | ClientAgentDefinition; headline: "Welcome!"; title: string; welcomeText: any; variables: { [key: string]: any; }; useContextAsVariable: boolean; contextVariableName: string; _renderStepComponent: Type; private readonly widgetConfigService; private readonly alertService; private readonly contextRouteService; /** * A component that is used to render each step in the chat. By default, it uses the `AgentStepFeedbackComponent`. * You can provide your own component by returning it from this callback. * * @returns A promise that resolves to a component type. */ loadRenderStepComponent: () => Promise>; /** * A callback that is invoked when a tool result is returned. The function can return either: * - `undefined` or `void`: No action is taken. * - an object which is stored to the widget configuration. */ onToolResult: (step: ToolResult) => undefined | any; /** * @ignore */ ngOnInit(): Promise; /** * Handles the tool result returned from the AI agent. * @param tool The tool result returned from the AI agent. */ toolResultHandler(tool: ToolResult): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export { AgentChatComponent, AgentStepFeedbackComponent, WidgetAiChatSectionComponent }; //# sourceMappingURL=index.d.ts.map