{ "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": "\"\"\"\nUse the context provided in `{question}` to determine the most accurate answer. Validate the context to ensure it is complete and reliable before generating the answer. Provide your final answer in a clear format, directly addressing the question without unnecessary elaboration. If the question involves complexity or nuances, ensure your response reflects that appropriately.\n\"\"\"", "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 }, { "name": "validate_answer3927", "description": "Task to validate_answer3927. Takes answer as input. Produces validated_answer as output.", "inputs": [ { "name": "answer", "type": "str", "description": "Input parameter answer for validate_answer3927", "required": false } ], "outputs": [ { "name": "validated_answer", "type": "str", "description": "Output parameter validated_answer from validate_answer3927", "required": true } ], "prompt": "```xml\n\"\"\"\nAnalyze the question {question} carefully to provide a clear and concise answer. Consider the relevant context and any potential ambiguities in the question. In the 'thought' field, outline your reasoning process, including any considerations for conflicting interpretations or nuances. Validate your answer against known information to ensure accuracy. Present your final answer in the 'answer' field, ensuring it is straightforward and directly addresses the question.\nFormat your output in xml format, such as xxx and xxx.\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": "handle_ambiguities4730", "description": "Task to handle_ambiguities4730. Takes question, validated_answer as input. Produces final_answer as output.", "inputs": [ { "name": "question", "type": "str", "description": "Input parameter question for handle_ambiguities4730", "required": false }, { "name": "validated_answer", "type": "str", "description": "Input parameter validated_answer for handle_ambiguities4730", "required": false } ], "outputs": [ { "name": "final_answer", "type": "str", "description": "Output parameter final_answer from handle_ambiguities4730", "required": true } ], "prompt": "``` \nINSTRUCTION for the 3-th task:\n\"\"\"\nAnalyze the {question} carefully to identify the relevant context that informs the answer. Consider any potential ambiguities and conflicts that may arise from the context. In the 'thought' field, explain your reasoning process step by step, integrating the context to arrive at a coherent conclusion. In the 'answer' field, provide the final answer based on your analysis. Ensure that your response addresses any discrepancies or conflicts identified during your reasoning.\nFormat your output in xml format, such as xxx and xxx.\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": "manage_conflicts1245", "description": "Task to manage_conflicts1245. Takes final_answer as input. Produces final_answer as output.", "inputs": [ { "name": "final_answer", "type": "str", "description": "Input parameter final_answer for manage_conflicts1245", "required": false } ], "outputs": [ { "name": "final_answer", "type": "str", "description": "Output parameter final_answer from manage_conflicts1245", "required": true } ], "prompt": "\"\"\"\nThink step by step to answer the question based on the context provided in {question}. First, ensure that the {validated_answer} is accurate and aligns with the context. If there are ambiguities in {validated_answer}, clarify them using relevant context before finalizing the answer. In the 'thought' field, explain your reasoning process clearly, and in the 'answer' field, provide the final answer based on your analysis. Format your output in XML format, such as xxx and xxx.\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 } ] }