prompts/operators.py

EvoAgentX · evoagentx/prompts/operators.py · python · MIT
ai, tag:knn-classified

Defines XML-formatted prompt templates for AI reasoning and ensemble selection.

# Source: https://github.com/EvoAgentX/EvoAgentX | License: MIT | Copyright 2025 EvoAgentX
# Provided via justclaw.it.com; keep this notice with the code.
# Acknowledgement: Modified from AFlow (https://github.com/geekan/MetaGPT/blob/main/metagpt/ext/aflow/scripts/prompts/prompt.py) under MIT License

ANSWER_GENERATION_PROMPT = """
Think step by step and solve the problem.
1. In the "thought" field, explain your thinking process in detail.
2. In the "answer" field, provide the final answer concisely and clearly. The answer should be a direct response to the question, without including explanations or reasoning.
You should format your output in xml format. For example, ouptut the thoughts in <thought>xxx</thought> format. 

Your task: {input}
"""

QA_SC_ENSEMBLE_PROMPT = """
Several answers

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key