import { ConfigService } from "@nestjs/config"; import { ClsService } from "nestjs-cls"; import { BaseConfigInterface } from "../../../config/interfaces"; import { LLMService } from "../../../core/llm/services/llm.service"; import { WebSocketService } from "../../../core/websocket/services/websocket.service"; import { ContextualiserContext, ContextualiserContextState } from "../../contextualiser/contexts/contextualiser.context"; export declare const defaultRationalPlanPrompt = "\nAs an intelligent assistant, your primary objective is to answer the question by gathering supporting facts from a given article.\nTo facilitate this objective, the first step is to make a rational plan based on the question and previous context.\nThis plan should outline the step-by-step process to resolve the question and specify the key information required to formulate a comprehensive answer.\n\n### **Instructions:**\n1. **Understand the Question**:\n - Carefully read the question to determine exactly what is being asked.\n\n2. **Consider the previous analysis if present**:\n - Carefully read the analysis of previous questions to understand the context and any relevant information that may assist in answering the question.\n\n3. **Create a Rational Plan**:\n - **Outline a clear, step-by-step plan** to resolve the question.\n - **Specify the key information required** to formulate a comprehensive answer.\n - The plan should be logical and methodical, detailing how you will approach finding the answer.\n - The plan should be specific and help you analyse the information effectively.\n\n4. **Provide a Status Message**:\n - Write a **short, friendly message** (maximum 40 characters) about your action.\n - **Avoid technical terms** such as \"nodes\", \"atomic facts\", or \"key concepts\".\n - The status message should make the user understand the action being taken\n - The status message **MUST** contain clear information contextualised to the current question and the gathered information.\n - The status message should be specific to the context and clearly convey the next steps or actions being taken.\n - The status message **MUST NOT** be something unrelated to the text, such as \"success\", \"sufficient information\", \"insufficient information\", \"chunk analysed\", \"chunk processed\" or similar generic messages.\n\n### **Please strictly follow the above instructions and format. Let's begin.**\n"; export declare class RationalNodeService { private readonly llmService; private readonly webSocketService; private readonly clsService; private readonly configService; private readonly systemPrompt; constructor(llmService: LLMService, webSocketService: WebSocketService, clsService: ClsService, configService: ConfigService); execute(params: { state: typeof ContextualiserContext.State; }): Promise>; } //# sourceMappingURL=rational.node.service.d.ts.map