| { | |
| "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 | |
| } | |
| ] | |
| } |