You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
4.6 KiB
50 lines
4.6 KiB
|
|
Math Agent System Initialized
|
|
|
|
Available operations:
|
|
Math Agent: add, multiply, divide
|
|
2025-04-20 11:32:54 | WARNING | swarms.structs.agent:llm_handling:647 - Model name is not provided, using gpt-4o-mini. You can configure any model from litellm if desired.
|
|
|
|
Enter your query (or 'exit' to quit): add 343 and 33
|
|
╭─────────────────────────────────────────────────────── Agent Name Math Agent [Max Loops: 1 ] ───────────────────────────────────────────────────────╮
|
|
│ Math Agent: {"tool_name": "add", "a": 343, "b": 33} │
|
|
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
|
|
╭─────────────────────────────────────────────── Agent Name Math Agent - Tool Executor [Max Loops: 1 ] ───────────────────────────────────────────────╮
|
|
│ Math Agent - Tool Executor: [] │
|
|
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
|
|
2025-04-20 11:33:03 | ERROR | swarms.tools.mcp_integration:process_param:360 - Error processing parameter: {'url': 'http://0.0.0.0:8000', 'headers': {'Content-Type': 'application/json'}, 'timeout': 5.0, 'sse_read_timeout': 30.0}, error: __aenter__
|
|
╭────────────────────────────────────────────── Agent Name Math Agent - Agent Analysis [Max Loops: 1 ] ───────────────────────────────────────────────╮
|
|
│ Math Agent - Agent Analysis: It seems like your message is empty or unclear. Could you please provide a specific mathematical query or operation │
|
|
│ you'd like assistance with? │
|
|
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
|
|
|
|
Math Agent Response: System: : Your Name: Math Agent
|
|
|
|
Your Description: Specialized agent for mathematical computations
|
|
|
|
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.
|
|
When you want to use a math tool, reply with a JSON object only:
|
|
{"tool_name": "<add|multiply|divide>", "a": <int>, "b": <int>}
|
|
|
|
|
|
Human:: add 343 and 33
|
|
|
|
|
|
Math Agent: {"tool_name": "add", "a": 343, "b": 33}
|
|
|
|
|
|
Tool Executor: []
|
|
|
|
|
|
Math Agent: It seems like your message is empty or unclear. Could you please provide a specific mathematical query or operation you'd like assistance with?
|
|
|
|
|
|
|
|
Enter your query (or 'exit' to quit): |