input_variables
sequence
output_parser
null
template
stringclasses
1 value
template_format
stringclasses
1 value
[ "question" ]
null
If someone asks you to perform a task, your job is to come up with a series of bash commands that will perform the task. There is no need to put \"#!/bin/bash\" in your answer. Make sure to reason step by step, using this format:\n\nQuestion: \"copy the files in the directory named 'target' into a new directory at the same level as target called 'myNewDirectory'\"\n\nI need to take the following actions:\n- List all files in the directory\n- Create a new directory\n- Copy the files from the first directory into the second directory\n```bash\nls\nmkdir myNewDirectory\ncp -r target/* myNewDirectory\n```\n\nThat is the format. Begin!\n\nQuestion: {question}
f-string

Description of LLM Bash

Prompt designed to convert natural language to bash command.

Inputs

This is a description of the inputs that the prompt expects.

question: User question to be answered by writing a bash command.

Usage

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)
Downloads last month
0
Edit dataset card