selfevolveagent / examples /pertqa /debug /save_10_noreason_calltime1_pertqa1.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": "validate_input6561",
"description": "Task to validate_input6561. Takes question as input. Produces validated_question as output.",
"inputs": [
{
"name": "question",
"type": "str",
"description": "Input parameter question for validate_input6561",
"required": false
}
],
"outputs": [
{
"name": "validated_question",
"type": "str",
"description": "Output parameter validated_question from validate_input6561",
"required": true
}
],
"prompt": "\"\"\"\nYour are a task solver. Please validate the input question `{question}` to ensure it is clear, concise, and free from ambiguity. A validated question should be straightforward and suitable for generating a relevant answer. If the question is ambiguous or unclear, return an appropriate error message detailing the specific issue. If the validation is successful, proceed to generate an answer based on the validated question.\n\"\"\"",
"prompt_template": null,
"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": "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 that your final answer is clear, concise, and directly addresses the question without unnecessary commentary or reasoning. Validate the answer against the expected criteria using the `validate_answer5230` step to ensure accuracy before finalizing the output. If the answer is ambiguous or unclear, invoke the `handle_errors4140` step to address any issues.\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_answer5230",
"description": "Task to validate_answer5230. Takes answer as input. Produces validated_answer as output.",
"inputs": [
{
"name": "answer",
"type": "str",
"description": "Input parameter answer for validate_answer5230",
"required": false
}
],
"outputs": [
{
"name": "validated_answer",
"type": "str",
"description": "Output parameter validated_answer from validate_answer5230",
"required": true
}
],
"prompt": "\"\"\"\nYour are a task solver. Validate the correctness of the generated answer `{validated_answer}` by comparing it against the expected response format and context of the question `{question}`. Ensure that the answer is accurate, aligns with the relevant context, and addresses any nuances present in the question. If the answer does not meet the expected criteria or context, flag it for review, provide a rationale for the discrepancy, and suggest necessary adjustments before proceeding to finalize the output.\n\"\"\"",
"prompt_template": null,
"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_errors4140",
"description": "Task to handle_errors4140. Takes validated_answer as input. Produces final_answer as output.",
"inputs": [
{
"name": "validated_answer",
"type": "str",
"description": "Input parameter validated_answer for handle_errors4140",
"required": false
}
],
"outputs": [
{
"name": "final_answer",
"type": "str",
"description": "Output parameter final_answer from handle_errors4140",
"required": true
}
],
"prompt": "```\nYour are a task solver. Ensure that the {validated_answer} is logically consistent with the {validated_question}. If there is a discrepancy between the {validated_answer} and the expected answer, re-evaluate the reasoning process and adjust the {validated_answer} accordingly. If the {validated_question} is ambiguous or unclear, indicate this in the {final_answer} and suggest a clarification. If the {validated_answer} is incorrect, identify the specific error and provide a corrected answer based on the validation process. Maintain clarity and simplicity in your language to avoid misinterpretation of tasks, and ensure that all answers are relevant to the context of the question.\n```",
"prompt_template": null,
"system_prompt": "You are a helpful and highly intelligent assistant.",
"parse_mode": "xml",
"parse_func": null,
"parse_title": null,
"tool_names": null,
"tools": null
}
]
}