{
"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 that your answer is clear and directly addresses the question without extra commentary or reasoning. If the question is ambiguous or poorly defined, provide a qualified response that acknowledges the uncertainty. Pay attention to any conflicting predictions and solutions in the context to avoid inaccuracies in your response.\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_answer639",
"description": "Task to validate_answer639. Takes answer as input. Produces validated_answer as output.",
"inputs": [
{
"name": "answer",
"type": "str",
"description": "Input parameter answer for validate_answer639",
"required": false
}
],
"outputs": [
{
"name": "validated_answer",
"type": "str",
"description": "Output parameter validated_answer from validate_answer639",
"required": true
}
],
"prompt": "\"\"\"\nThink step by step to answer the question based on the context provided in {question}. Integrate relevant context while ensuring clarity and conciseness in your response. In the 'thought' field, explain your reasoning process, including how you derived your answer and any considerations taken into account. Provide the final answer in the 'answer' field, ensuring it is straightforward and free of unnecessary details. Format your output in XML format, such as {thought} and {answer}.\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": "error_handling2077",
"description": "Task to error_handling2077. Takes validated_answer as input. Produces final_answer as output.",
"inputs": [
{
"name": "validated_answer",
"type": "str",
"description": "Input parameter validated_answer for error_handling2077",
"required": false
}
],
"outputs": [
{
"name": "final_answer",
"type": "str",
"description": "Output parameter final_answer from error_handling2077",
"required": true
}
],
"prompt": "\"\"\"\nThink step by step to answer the question based on the context provided in {question}. First, generate a concise answer that integrates relevant context. Then, validate the answer to ensure its accuracy. If the answer is incorrect, follow the error handling procedures to refine it. Finally, cross-reference the validated answer with external data or prior knowledge to enhance reliability. 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
},
{
"name": "clarify_question7138",
"description": "Task to clarify_question7138. Takes question as input. Produces clarified_question as output.",
"inputs": [
{
"name": "question",
"type": "str",
"description": "Input parameter question for clarify_question7138",
"required": false
}
],
"outputs": [
{
"name": "clarified_question",
"type": "str",
"description": "Output parameter clarified_question from clarify_question7138",
"required": true
}
],
"prompt": "```xml\n\n Think step by step to answer the question based on the context provided in {question}. Ensure that you integrate relevant context to formulate a clear and concise answer. In the field, explain your reasoning process, including how you derived the answer from the context. In the field, provide the final answer directly related to {question}. If there are conflicting interpretations or results, prioritize clarity and consistency in your response.\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": "cross_reference2876",
"description": "Task to cross_reference2876. Takes validated_answer as input. Produces corroborated_answer as output.",
"inputs": [
{
"name": "validated_answer",
"type": "str",
"description": "Input parameter validated_answer for cross_reference2876",
"required": false
}
],
"outputs": [
{
"name": "corroborated_answer",
"type": "str",
"description": "Output parameter corroborated_answer from cross_reference2876",
"required": true
}
],
"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. In the 'thought' field, explain your reasoning process, ensuring that you consider all aspects of the question. Provide the final answer in the 'answer' field, ensuring it is straightforward and devoid of unnecessary details.\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
}
]
}