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.8 KiB
50 lines
4.8 KiB
|
|
Math Agent System Initialized
|
|
|
|
Available operations:
|
|
2025-04-20 10:41:14 | WARNING | swarms.structs.agent:llm_handling:646 - Model name is not provided, using gpt-4o-mini. You can configure any model from litellm if desired.
|
|
Math Agent: add, multiply, divide
|
|
|
|
Enter your query (or 'exit' to quit): add 8 and 11
|
|
╭─────────────────────────────────────────────────────── Agent Name: Math Agent [Max Loops: 1] ───────────────────────────────────────────────────────╮
|
|
│ Math Agent: <litellm.litellm_core_utils.streaming_handler.CustomStreamWrapper object at 0x7ff74f418e20> │
|
|
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
|
|
2025-04-20 10:44:25 | ERROR | swarms.structs.agent:_run:1147 - Attempt 1: Error generating response: 'Agent' object has no attribute 'mcp_execution_flow'
|
|
╭─────────────────────────────────────────────────────── Agent Name: Math Agent [Max Loops: 1] ───────────────────────────────────────────────────────╮
|
|
│ Math Agent: <litellm.litellm_core_utils.streaming_handler.CustomStreamWrapper object at 0x7ff74f3d2950> │
|
|
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
|
|
2025-04-20 10:44:27 | ERROR | swarms.structs.agent:_run:1147 - Attempt 2: Error generating response: 'Agent' object has no attribute 'mcp_execution_flow'
|
|
╭─────────────────────────────────────────────────────── Agent Name: Math Agent [Max Loops: 1] ───────────────────────────────────────────────────────╮
|
|
│ Math Agent: <litellm.litellm_core_utils.streaming_handler.CustomStreamWrapper object at 0x7ff74f3d22c0> │
|
|
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
|
|
2025-04-20 10:44:29 | ERROR | swarms.structs.agent:_run:1147 - Attempt 3: Error generating response: 'Agent' object has no attribute 'mcp_execution_flow'
|
|
2025-04-20 10:44:29 | ERROR | swarms.structs.agent:_run:1160 - Failed to generate a valid response after retry attempts.
|
|
|
|
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.
|
|
|
|
|
|
Human:: add 8 and 11
|
|
|
|
|
|
Math Agent: <litellm.litellm_core_utils.streaming_handler.CustomStreamWrapper object at 0x7ff74f418e20>
|
|
|
|
|
|
Math Agent: <litellm.litellm_core_utils.streaming_handler.CustomStreamWrapper object at 0x7ff74f3d2950>
|
|
|
|
|
|
Math Agent: <litellm.litellm_core_utils.streaming_handler.CustomStreamWrapper object at 0x7ff74f3d22c0>
|
|
|
|
|
|
|
|
Enter your query (or 'exit' to quit): |