General
PromptBeginner5 minmarkdown
<h1 align="center">
<a href="https://prompts.chat">
73
LangChain Hub prompt for Conversation
Loading actions...
<a href="https://prompts.chat">
risks
TypeScript and ESLint rules that MUST be followed when creating, modifying, or reviewing any file under apps/frontend/, including .ts, .tsx, .js, and .jsx files. Also apply when discussing frontend linting, type safety, or ESLint configuration.
Prompt designed to simulate having a conversation and allow for a conversational response to be returned.
This is a description of the inputs that the prompt expects.
history: History of the conversation up to that point.input: New user input.Below is a code snippet for how to use the prompt.
from langchain.prompts import load_prompt
from langchain.chains import ConversationChain
llm = ...
prompt = load_prompt('lc://prompts/conversation/<file-name>')
chain = ConversationChain(llm=llm, prompt=prompt)