{ "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 best answer. Ensure your answer is clear, concise, and directly addresses the question. If there are any ambiguities or conflicting interpretations in `{question}`, clarify them before providing your final answer. Avoid unnecessary commentary or reasoning.\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_answer8890", "description": "Task to validate_answer8890. Takes answer as input. Produces validated_answer as output.", "inputs": [ { "name": "answer", "type": "str", "description": "Input parameter answer for validate_answer8890", "required": false } ], "outputs": [ { "name": "validated_answer", "type": "str", "description": "Output parameter validated_answer from validate_answer8890", "required": true } ], "prompt": "```xml\n\"\"\"\nTo answer the question, carefully analyze the context provided in {question}. Use this context to formulate a clear and direct response. In the field, outline your reasoning process, explaining how the context influenced your answer. Provide the final response in the field, ensuring it is straightforward and relevant to the question asked.\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_errors2020", "description": "Task to handle_errors2020. Takes validated_answer as input. Produces final_answer as output.", "inputs": [ { "name": "validated_answer", "type": "str", "description": "Input parameter validated_answer for handle_errors2020", "required": false } ], "outputs": [ { "name": "final_answer", "type": "str", "description": "Output parameter final_answer from handle_errors2020", "required": true } ], "prompt": "``` \nINSTRUCTION for the 3-th task:\n\"\"\"\nTo answer the question, first analyze the context provided in {question} to identify what constitutes a \"significant change.\" Consider any conflicting evidence or results and determine how they may affect your answer. Ensure that your reasoning accounts for the variability of perturbation effects across different genes and conditions. Clearly articulate your thought process in the 'thought' field, and provide a direct and concise answer in the 'answer' field. Format 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 } ] }