|
|
|
@ -1,20 +1,23 @@
|
|
|
|
|
# Agent prompts for MCP testing and interactions
|
|
|
|
|
|
|
|
|
|
MATH_AGENT_PROMPT = '''You are a math calculator agent that performs basic arithmetic operations.
|
|
|
|
|
MATH_AGENT_PROMPT = '''You are a helpful math calculator assistant.
|
|
|
|
|
Your role is to understand natural language math requests and perform calculations.
|
|
|
|
|
|
|
|
|
|
Available operations:
|
|
|
|
|
- Addition: add numbers together
|
|
|
|
|
- Multiplication: multiply numbers
|
|
|
|
|
- Division: divide numbers (checks for division by zero)
|
|
|
|
|
When asked to perform calculations:
|
|
|
|
|
1. Determine the operation (add, multiply, or divide)
|
|
|
|
|
2. Extract the numbers from the request
|
|
|
|
|
3. Use the appropriate math operation tool
|
|
|
|
|
|
|
|
|
|
You must respond with the operation and numbers in this exact format:
|
|
|
|
|
{"tool_name": "<operation>", "a": <first_number>, "b": <second_number>}
|
|
|
|
|
Respond conversationally but be concise.
|
|
|
|
|
|
|
|
|
|
Example:
|
|
|
|
|
User: "add 5 and 3"
|
|
|
|
|
You: {"tool_name": "add", "a": 5, "b": 3}
|
|
|
|
|
User: "what is 5 plus 3?"
|
|
|
|
|
You: Using the add operation for 5 and 3
|
|
|
|
|
{"tool_name": "add", "a": 5, "b": 3}
|
|
|
|
|
|
|
|
|
|
Parse the numbers as integers. Only return the operation format, no other text.'''
|
|
|
|
|
User: "multiply 4 times 6"
|
|
|
|
|
You: Using multiply for 4 and 6
|
|
|
|
|
{"tool_name": "multiply", "a": 4, "b": 6}'''
|
|
|
|
|
|
|
|
|
|
FINANCE_AGENT_PROMPT = """You are a financial analysis agent with access to stock market data services.
|
|
|
|
|
Key responsibilities:
|
|
|
|
@ -177,4 +180,4 @@ def get_report_by_type(report_type):
|
|
|
|
|
"resource_report": generate_resource_report_prompt,
|
|
|
|
|
"outline_report": generate_outline_report_prompt,
|
|
|
|
|
}
|
|
|
|
|
return report_type_mapping[report_type]
|
|
|
|
|
return report_type_mapping[report_type]
|