selfevolveagent / examples /pertqa /debug /save_5_noreason.json
iLOVE2D's picture
Upload 2846 files
5374a2d verified
{
"class_name": "QASTRUCTUREOptimizer",
"graph": {
"class_name": "SequentialWorkFlowGraph",
"goal": "Provide a concise answer to the question using relevant context. The answer must be straightforward and avoid unnecessary explanations.",
"nodes": [
{
"class_name": "WorkFlowNode",
"name": "generate_answer",
"description": "Extract and formulate an answer from the given context.",
"inputs": [
{
"class_name": "Parameter",
"name": "question",
"type": "str",
"description": "The question that needs to be answered.",
"required": true
}
],
"outputs": [
{
"class_name": "Parameter",
"name": "answer",
"type": "str",
"description": "The direct answer to the question.",
"required": true
}
],
"agents": [
{
"name": "GenerateAnswerAgent",
"description": "Extract and formulate an answer from the given context.",
"prompt": "\"\"\"\nUse the context provided in `{question}` to determine the best answer. Ensure that your response is clear, concise, and formatted as a direct answer. If the answer is ambiguous or requires clarification, indicate that appropriately. Validate the correctness of your answer before finalizing it. Avoid any unnecessary commentary or reasoning, and focus solely on delivering the information requested.\n\"\"\"",
"prompt_template": null,
"system_prompt": "You are a helpful and highly intelligent assistant.",
"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
}
],
"output_parser": null,
"parse_mode": "xml",
"parse_func": null,
"parse_title": null,
"tool_names": null
}
],
"status": "pending"
},
{
"class_name": "WorkFlowNode",
"name": "validate_answer4150",
"description": "Task to validate_answer4150. Takes answer as input. Produces validated_answer as output.",
"inputs": [
{
"class_name": "Parameter",
"name": "answer",
"type": "str",
"description": "Input parameter answer for validate_answer4150",
"required": false
}
],
"outputs": [
{
"class_name": "Parameter",
"name": "validated_answer",
"type": "str",
"description": "Output parameter validated_answer from validate_answer4150",
"required": true
}
],
"agents": [
{
"name": "ValidateAnswer4150Agent",
"description": "Task to validate_answer4150. Takes answer as input. Produces validated_answer as output.",
"prompt": "\"\"\"\nThink step by step to answer the question based on the context provided in {question}. Ensure that you validate the context against reliable sources before generating your answer. If the answer appears ambiguous or uncertain, clarify the ambiguities and provide a definitive response. Additionally, if conflicting information arises during the validation process, reassess the answer to ensure consistency. Format your output in xml format, such as <thought>xxx</thought> and <answer>xxx</answer>, ensuring that the final answer is clear and concise.\n\"\"\"",
"prompt_template": null,
"system_prompt": "You are a helpful and highly intelligent assistant.",
"inputs": [
{
"name": "answer",
"type": "str",
"description": "Input parameter answer for validate_answer4150",
"required": false
}
],
"outputs": [
{
"name": "validated_answer",
"type": "str",
"description": "Output parameter validated_answer from validate_answer4150",
"required": true
}
],
"output_parser": null,
"parse_mode": "xml",
"parse_func": null,
"parse_title": null,
"tool_names": null
}
],
"status": "pending"
},
{
"class_name": "WorkFlowNode",
"name": "check_exceptions82919080",
"description": "Task to check_exceptions82919080. Takes validated_answer as input. Produces final_answer as output.",
"inputs": [
{
"class_name": "Parameter",
"name": "validated_answer",
"type": "str",
"description": "Input parameter validated_answer for check_exceptions82919080",
"required": false
}
],
"outputs": [
{
"class_name": "Parameter",
"name": "final_answer",
"type": "str",
"description": "Output parameter final_answer from check_exceptions82919080",
"required": true
}
],
"agents": [
{
"name": "CheckExceptions82919080Agent",
"description": "Task to check_exceptions82919080. Takes validated_answer as input. Produces final_answer as output.",
"prompt": "```xml\n\"\"\"\nThink step by step to answer the question based on the context provided in {question}. Integrate relevant context to formulate a clear and concise answer. If there are ambiguities or uncertainties in the question, acknowledge them and provide a reasoned response. Format your output in xml format, using <thought>{your_thought_process}</thought> to explain your reasoning and <answer>{your_final_answer}</answer> to present the answer directly.\n\"\"\"\n```",
"prompt_template": null,
"system_prompt": "You are a helpful and highly intelligent assistant.",
"inputs": [
{
"name": "validated_answer",
"type": "str",
"description": "Input parameter validated_answer for check_exceptions82919080",
"required": false
}
],
"outputs": [
{
"name": "final_answer",
"type": "str",
"description": "Output parameter final_answer from check_exceptions82919080",
"required": true
}
],
"output_parser": null,
"parse_mode": "xml",
"parse_func": null,
"parse_title": null,
"tool_names": null
}
],
"status": "pending"
},
{
"class_name": "WorkFlowNode",
"name": "handle_ambiguities55386308",
"description": "Task to handle_ambiguities55386308. Takes question, final_answer as input. Produces output as output.",
"inputs": [
{
"class_name": "Parameter",
"name": "question",
"type": "str",
"description": "Input parameter question for handle_ambiguities55386308",
"required": false
},
{
"class_name": "Parameter",
"name": "final_answer",
"type": "str",
"description": "Input parameter final_answer for handle_ambiguities55386308",
"required": false
}
],
"outputs": [
{
"class_name": "Parameter",
"name": "output",
"type": "str",
"description": "Output parameter output from handle_ambiguities55386308",
"required": true
}
],
"agents": [
{
"name": "HandleAmbiguities55386308Agent",
"description": "Task to handle_ambiguities55386308. Takes question, final_answer as input. Produces output as output.",
"prompt": "```xml\n\"\"\"\nFor the task of handling ambiguities, first analyze the context of the {question} to identify any unclear elements. Consider potential conflicting interpretations and evaluate the relevance of each to the {final_answer}. Clearly articulate your reasoning process in the <thought> field, ensuring to address any discrepancies between predictions and solutions. Provide a definitive response in the <answer> field, ensuring it aligns with the context and resolves any ambiguities.\n\"\"\"\n```",
"prompt_template": null,
"system_prompt": "You are a helpful and highly intelligent assistant.",
"inputs": [
{
"name": "question",
"type": "str",
"description": "Input parameter question for handle_ambiguities55386308",
"required": false
},
{
"name": "final_answer",
"type": "str",
"description": "Input parameter final_answer for handle_ambiguities55386308",
"required": false
}
],
"outputs": [
{
"name": "output",
"type": "str",
"description": "Output parameter output from handle_ambiguities55386308",
"required": true
}
],
"output_parser": null,
"parse_mode": "xml",
"parse_func": null,
"parse_title": null,
"tool_names": null
}
],
"status": "pending"
}
],
"edges": [
{
"class_name": "WorkFlowEdge",
"source": "generate_answer",
"target": "validate_answer4150",
"priority": 0
},
{
"class_name": "WorkFlowEdge",
"source": "validate_answer4150",
"target": "check_exceptions82919080",
"priority": 0
},
{
"class_name": "WorkFlowEdge",
"source": "check_exceptions82919080",
"target": "handle_ambiguities55386308",
"priority": 0
}
],
"graph": null
},
"evaluator": null,
"llm": null,
"max_steps": 5,
"eval_every_n_steps": 1,
"eval_rounds": 1,
"convergence_threshold": 5,
"repr_scheme": "python",
"optimize_mode": "all",
"order": "zero-order",
"calltime": 1,
"num_workers": 1
}