File size: 1,432 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
37
{
    "class_name": "SequentialWorkFlowGraph",
    "goal": "Provide a concise answer to the question using relevant context. The answer must be straightforward and avoid unnecessary explanations.",
    "tasks": [
        {
            "name": "generate_answer",
            "description": "Extract and formulate an answer from the given context.",
            "inputs": [
                {
                    "name": "question",
                    "type": "str",
                    "description": "The question that needs to be answered.",
                    "required": true
                }
            ],
            "outputs": [
                {
                    "name": "answer",
                    "type": "str",
                    "description": "The direct answer to the question.",
                    "required": true
                }
            ],
            "prompt": null,
            "prompt_template": {
                "class_name": "StringTemplate",
                "instruction": "Use the context to determine the best answer to the question. Provide your final answer in a clear format, without extra commentary or reasoning."
            },
            "system_prompt": "You are a helpful and highly intelligent assistant.",
            "parse_mode": "xml",
            "parse_func": null,
            "parse_title": null,
            "tool_names": null,
            "tools": null
        }
    ]
}