import { ChatPromptTemplate, HumanMessagePromptTemplate, SystemMessagePromptTemplate, } from "../../prompts/chat.js"; export const PLANNER_SYSTEM_PROMPT_MESSAGE_TEMPLATE = [ `Let's first understand the problem and devise a plan to solve the problem.`, `Please output the plan starting with the header "Plan:"`, `and then followed by a numbered list of steps.`, `Please make the plan the minimum number of steps required`, `to answer the query or complete the task accurately and precisely.`, `Your steps should be general, and should not require a specific method to solve a step. If the task is a question,`, `the final step in the plan must be the following: "Given the above steps taken,`, `please respond to the original query."`, `At the end of your plan, say ""`, ].join(" "); export const PLANNER_CHAT_PROMPT = /* #__PURE__ */ ChatPromptTemplate.fromPromptMessages([ /* #__PURE__ */ SystemMessagePromptTemplate.fromTemplate( PLANNER_SYSTEM_PROMPT_MESSAGE_TEMPLATE ), /* #__PURE__ */ HumanMessagePromptTemplate.fromTemplate(`{input}`), ]); export const DEFAULT_STEP_EXECUTOR_HUMAN_CHAT_MESSAGE_TEMPLATE = `Previous steps: {previous_steps} Current objective: {current_step} {agent_scratchpad} You may extract and combine relevant data from your previous steps when responding to me.`;