General
PromptBeginner5 minmarkdown
<h1 align="center">
<a href="https://prompts.chat">
5
LangChain Hub prompt for Llm bash
Sign in to like and favorite skills
Prompt designed to convert natural language to bash command.
This is a description of the inputs that the prompt expects.
question: User question to be answered by writing a bash command.Below is a code snippet for how to use the prompt.
from langchain.prompts import load_prompt from langchain.chains import LLMBashChain llm = ... prompt = load_prompt('lc://prompts/llm_bash/<file-name>') chain = LLMBashChain(llm=llm, prompt=prompt)