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