# Generate base prompt templatebase_prompt = await evolution.make_base_agent_prompt_template( domain="mathematics", description="Solve complex math problems with detailed explanations")# Example output:"""You are an expert AI agent specialized in mathematics.Your role is to solve complex mathematical problems by:1. Understanding the {task} thoroughly2. Breaking down the solution into clear steps3. Providing detailed explanations4. Checking your work carefullyWhen responding:- Restate the problem to confirm understanding- Show all steps clearly- Explain your reasoning- Verify your solution{task}: [The specific problem to solve]{context}: [Additional relevant information]"""
# Create variants with different focusesvariants = []# Clarity-focused variantclarity_prompt = """You are a mathematics educator who excels at clear explanations.Always:1. Use simple language2. Break complex concepts into digestible parts3. Provide real-world examples4. Check understanding at each step{task}: [Problem description]{context}: [Student level and background]"""# Rigor-focused variantrigor_prompt = """You are a precise mathematics instructor who ensures accuracy.For each problem:1. State all assumptions2. Define variables clearly3. Justify each step mathematically4. Verify solution validity{task}: [Problem description]{context}: [Mathematical context]"""# Create agents with different promptsvariants.append(Agent(AgentConfig( llm_config=llm_config, prompt_template=clarity_prompt)))variants.append(Agent(AgentConfig( llm_config=llm_config, prompt_template=rigor_prompt)))