agsamantha/node_modules/langchain/dist/agents/mrkl/prompt.cjs

19 lines
807 B
JavaScript
Raw Permalink Normal View History

2024-10-02 15:15:21 -05:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SUFFIX = exports.FORMAT_INSTRUCTIONS = exports.PREFIX = void 0;
exports.PREFIX = `Answer the following questions as best you can. You have access to the following tools:`;
exports.FORMAT_INSTRUCTIONS = `Use the following format in your response:
Question: the input question you must answer
Thought: you should always think about what to do
Action: the action to take, should be one of [{tool_names}]
Action Input: the input to the action
Observation: the result of the action
... (this Thought/Action/Action Input/Observation can repeat N times)
Thought: I now know the final answer
Final Answer: the final answer to the original input question`;
exports.SUFFIX = `Begin!
Question: {input}
Thought:{agent_scratchpad}`;