/** * Agent的提示模板 */ import { HumanMessage, SystemMessage } from "@langchain/core/messages"; import { BrowserState } from "../browser/views"; import { ActionResult, AgentStepInfo } from "./views"; /** * 系统提示类 * 用于定义代理的行为和能力 */ export declare class SystemPrompt { private defaultActionDescription; private maxActionsPerStep; /** * 创建SystemPrompt实例 * @param task 任务描述 * @param actionDescriptions 动作描述 * @param includeAttributes 包含的属性 * @param messageContext 消息上下文 */ constructor(actionDescriptions: string, maxActionsPerStep?: number); importantRules(): string; inputFormat(): string; /** * 获取系统提示 */ getSystemPrompt(): SystemMessage; } /** * 代理消息提示类 */ export declare class AgentMessagePrompt { private state; private result; private includeAttributes; private maxErrorLength; private stepInfo; /** * 创建AgentMessagePrompt实例 * @param task 任务描述 * @param includeAttributes 包含的属性 */ constructor(state: BrowserState, result: ActionResult[] | undefined, includeAttributes: string[] | undefined, maxErrorLength: number | undefined, stepInfo: AgentStepInfo | undefined); getUserMessage(useVision?: boolean): HumanMessage; } /** * 规划器提示类 */ export declare class PlannerPrompt extends SystemPrompt { constructor(actionDescriptions: string, maxActionsPerStep?: number); getSystemMessage(): SystemMessage; }