{ "class_name": "SequentialWorkFlowGraph", "goal": "Provide a direct answer to the question based on the context, without including explanations or reasoning.", "tasks": [ { "name": "answer_generate", "description": "Generate a direct answer to the question based on the context.", "inputs": [ { "name": "question", "type": "str", "description": "The question to answer directly.", "required": true } ], "outputs": [ { "name": "answer", "type": "str", "description": "The direct answer to the question.", "required": true } ], "prompt": "\"\"\"\nProvide a concise and direct answer to the question: {question}.\n\"\"\"", "prompt_template": { "class_name": "StringTemplate", "instruction": "Provide a concise and direct answer to the question." }, "system_prompt": "You are a helpful and highly intelligent assistant.", "parse_mode": "xml", "parse_func": null, "parse_title": null, "tool_names": null, "tools": null }, { "name": "validation_step6854", "description": "Task to validation_step6854. Takes answer as input. Produces validated_answer as output.", "inputs": [ { "name": "answer", "type": "str", "description": "Input parameter answer for validation_step6854", "required": false } ], "outputs": [ { "name": "validated_answer", "type": "str", "description": "Output parameter validated_answer from validation_step6854", "required": true } ], "prompt": "``` \nINSTRUCTION for the 2-th task:\n\"\"\"\nThink step by step to answer the question based on the context provided in {question}. Ensure that your answer is directly supported by the context and does not include any extraneous reasoning. Validate your answer against the context to ensure its correctness. Format your output in xml format, such as xxx and xxx, where should summarize the validation process and should contain the final validated answer.\n\"\"\"\n```", "prompt_template": { "class_name": "StringTemplate", "instruction": "Think step by step to answer the question based on the question context. You should integrate context for answering. You should explain your thinking process in the 'thought' field, and provide the final answer in the 'answer' field.\nFormat your output in xml format, such as xxx and xxx." }, "system_prompt": "You are a helpful and highly intelligent assistant.", "parse_mode": "xml", "parse_func": null, "parse_title": null, "tool_names": null, "tools": null }, { "name": "finalize_answer6751", "description": "Task to finalize_answer6751. Takes validated_answer as input. Produces final_answer as output.", "inputs": [ { "name": "validated_answer", "type": "str", "description": "Input parameter validated_answer for finalize_answer6751", "required": false } ], "outputs": [ { "name": "final_answer", "type": "str", "description": "Output parameter final_answer from finalize_answer6751", "required": true } ], "prompt": "``` \nINSTRUCTION for the 3-th task:\n\"\"\"\nCarefully analyze the provided context to accurately answer the question. Ensure that your response is directly informed by the context. In the 'thought' field, describe the reasoning process you used to integrate the context into your answer. Provide the final answer in the 'answer' field, ensuring it is concise and directly addresses the question.\nFormat your output in xml format, such as {thought} and {answer}.\n\"\"\" \n```", "prompt_template": { "class_name": "StringTemplate", "instruction": "Think step by step to answer the question based on the question context. You should integrate context for answering. You should explain your thinking process in the 'thought' field, and provide the final answer in the 'answer' field.\nFormat your output in xml format, such as xxx and xxx." }, "system_prompt": "You are a helpful and highly intelligent assistant.", "parse_mode": "xml", "parse_func": null, "parse_title": null, "tool_names": null, "tools": null } ] }