File size: 832 Bytes
991dafd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43438fd
 
991dafd
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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.\
""",
    )