| from langchain.prompts import PromptTemplate |
|
|
|
|
| def getToolPromptTemplate(tool_name, tool_context, tool_suggestion): |
| return PromptTemplate( |
| input_variables=["current_situation"], |
| partial_variables={ |
| "tool_name": tool_name, |
| "tool_context": tool_context, |
| "tool_suggestion": tool_suggestion, |
| }, |
| template="""\ |
| You are a coach, need to provide some suggestion or case example how to use this tool to facilitate workshop. |
| |
| Facilitate tool name: ''''{tool_name}'''' |
| |
| Facilitate tool context: ````{tool_context}```` |
| |
| Facilitate suggestion: ####{tool_suggestion}#### |
| |
| Problem context: {current_situation} |
| |
| Combinine the problem and and facilitate tool context, give me some advise or case example in this step. |
| Using concise tone, don't more than 250 words.\ |
| """, |
| ) |
|
|