/** * The following code is modified based on * https://github.com/nanobrowser/nanobrowser/blob/master/chrome-extension/src/background/agent/prompts/base.ts * * Apache-2.0 License * Copyright (c) 2024 alexchenzl * https://github.com/nanobrowser/nanobrowser/blob/master/LICENSE */ import { HumanMessage, type SystemMessage } from '@langchain/core/messages'; import type { AgentContext } from '../types'; /** * Abstract base class for all prompt types */ declare abstract class BasePrompt { /** * Returns the system message that defines the AI's role and behavior * @returns SystemMessage from LangChain */ abstract getSystemMessage(): SystemMessage; /** * Returns the user message for the specific prompt type * @param context - Optional context data needed for generating the user message * @returns HumanMessage from LangChain */ abstract getUserMessage(context: AgentContext): Promise; /** * Builds the user message containing the browser state * @param context - The agent context * @returns HumanMessage from LangChain */ buildBrowserStateUserMessage(context: AgentContext): Promise; } export { BasePrompt }; //# sourceMappingURL=base.d.ts.map