selfevolveagent / examples /pertqa /debug /save_25_noreason.json
iLOVE2D's picture
Upload 2846 files
5374a2d verified
{
"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. Validate the answer for accuracy against relevant criteria before finalization. Present the final answer in a clear and consistent format, such as a single sentence or short phrase. If the answer is ambiguous or unclear, indicate this explicitly. Address any complexities or nuances appropriately while avoiding 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
},
{
"name": "handle_format_errors5318",
"description": "Task to handle_format_errors5318. Takes validated_answer as input. Produces final_answer as output.",
"inputs": [
{
"name": "validated_answer",
"type": "str",
"description": "Input parameter validated_answer for handle_format_errors5318",
"required": false
}
],
"outputs": [
{
"name": "final_answer",
"type": "str",
"description": "Output parameter final_answer from handle_format_errors5318",
"required": true
}
],
"prompt": "```xml\n\"\"\"\nThink step by step to answer the question based on the context provided in {question}. Clearly define what constitutes a \"significant change\" in gene expression based on the context. If the perturbation does not lead to a significant change, explicitly state that in your response. Additionally, if there are ambiguous elements or discrepancies between predictions and ground-truth solutions, identify those aspects and adjust the answer accordingly. Ensure that your response is clear and concise. Format your output in xml format, such as <thought>{thought}</thought> and <answer>{answer}</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 <thought>xxx</thought> and <answer>xxx</answer>."
},
"system_prompt": "You are a helpful and highly intelligent assistant.",
"parse_mode": "xml",
"parse_func": null,
"parse_title": null,
"tool_names": null
},
{
"name": "validate_answer4773",
"description": "Task to validate_answer4773. Takes answer as input. Produces validated_answer as output.",
"inputs": [
{
"name": "answer",
"type": "str",
"description": "Input parameter answer for validate_answer4773",
"required": false
}
],
"outputs": [
{
"name": "validated_answer",
"type": "str",
"description": "Output parameter validated_answer from validate_answer4773",
"required": true
}
],
"prompt": "``` \nINSTRUCTION for the 3-th task:\n\"\"\"\nAnalyze the provided {question} thoroughly to generate a relevant and accurate answer. Clearly define what constitutes a \"significant change\" based on the context provided. In the 'thought' field, detail your reasoning process, addressing any potential ambiguities, conflicts, or uncertainties that may arise in the answer. If there are conflicting predictions or solutions, clarify how you resolved them and prioritize the evidence used in your reasoning. Validate the accuracy of your answer against known ground-truth solutions before finalizing it. In the 'answer' field, provide the final response, ensuring it adheres to the expected format. If the answer does not conform to the expected format, clearly indicate the issue. Format your output in XML format, such as <thought>{thought}</thought> and <answer>{answer}</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 <thought>xxx</thought> and <answer>xxx</answer>."
},
"system_prompt": "You are a helpful and highly intelligent assistant.",
"parse_mode": "xml",
"parse_func": null,
"parse_title": null,
"tool_names": null
}
]
}