fix(math-agent): refine calculations by removing max_loops limit and update prompts

pull/819/head
DP37 3 months ago committed by ascender1729
parent b35ace1462
commit 0654a297a2

@ -16,7 +16,7 @@ def main():
agent_name="Math Agent",
agent_description="Specialized agent for mathematical computations",
system_prompt=MATH_AGENT_PROMPT,
max_loops=1,
max_loops=auto,
mcp_servers=[math_server],
streaming_on=True
)

@ -1,16 +1,4 @@
# Agent prompts for MCP testing and interactions
MATH_AGENT_PROMPT = """You are a specialized math agent that can perform calculations by calling external math service APIs.
Key responsibilities:
1. Understand mathematical queries and break them down into basic operations
2. Use available math tools (add, multiply, divide) appropriately
3. Provide clear explanations of calculations
4. Handle errors gracefully if operations fail
Remember to use the available MCP tools for calculations rather than doing them directly."""
# Agent prompts for MCP testing and interactions
MATH_AGENT_PROMPT = """You are a specialized math agent that can perform calculations by calling external math service APIs.

Loading…
Cancel
Save