File size: 1,374 Bytes
5374a2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
28
29
30
31
32
33
34
35
36
{
    "class_name": "SequentialWorkFlowGraph",
    "goal": "Answer user questions accurately and concisely by decomposing the problem into analysis and generate.",
    "tasks": [
        {
            "name": "generate_answer",
            "description": "Draft an answer using the retrieved context.",
            "inputs": [
                {
                    "name": "question",
                    "type": "str",
                    "description": "The original question from the user.",
                    "required": true
                }
            ],
            "outputs": [
                {
                    "name": "draft_answer",
                    "type": "str",
                    "description": "A concise, direct answer to the question.",
                    "required": true
                }
            ],
            "prompt": null,
            "prompt_template": {
                "class_name": "StringTemplate",
                "instruction": "You can think to generate answers. You should provide the final answer (Yes or No) in the 'answer' field. Format your answer in <answer>xxx</answer>."
            },
            "system_prompt": "You are a helpful and highly intelligent assistant.",
            "parse_mode": "xml",
            "parse_func": null,
            "parse_title": null,
            "tool_names": null
        }
    ]
}