| { | |
| "class_name": "SequentialWorkFlowGraph", | |
| "goal": "Answer the question based on the context. The answer should be a direct response to the question, without including explanations or reasoning.", | |
| "tasks": [ | |
| { | |
| "name": "answer_generate", | |
| "description": "Answer the question based on the context.", | |
| "inputs": [ | |
| { | |
| "name": "problem", | |
| "type": "str", | |
| "description": "The problem to solve.", | |
| "required": true | |
| } | |
| ], | |
| "outputs": [ | |
| { | |
| "name": "answer", | |
| "type": "str", | |
| "description": "The answer to the problem.", | |
| "required": true | |
| } | |
| ], | |
| "prompt": null, | |
| "prompt_template": { | |
| "class_name": "StringTemplate", | |
| "instruction": "Begin your response with a clear and direct answer to the question: either 'Yes' or 'No'. If necessary, provide a brief rationale in one sentence that is strictly relevant to the question. Ensure that your response is concise and to the point, omitting any extraneous information. For example, respond with 'Yes' or 'No' only, such as: 'Yes'." | |
| }, | |
| "system_prompt": "You are an assistant tasked with providing clear, concise, and direct answers to questions. Respond strictly with 'Yes' or 'No' without any additional context or formatting. Ensure your response is relevant and avoids speculation, focusing solely on the binary nature of the question. Remember, the audience seeks straightforward answers.", | |
| "parse_mode": "xml", | |
| "parse_func": null, | |
| "parse_title": null, | |
| "tool_names": null | |
| } | |
| ] | |
| } |