parent
f7055a6c72
commit
be9d06e0de
@ -1,93 +0,0 @@
|
|||||||
|
|
||||||
Multi-Agent Math System
|
|
||||||
Enter 'exit' to quit
|
|
||||||
|
|
||||||
Enter a math problem: what kind of problem syou can solve
|
|
||||||
╭────────────────────── Agent Name Calculator [Max Loops: 1 ] ──────────────────────╮
|
|
||||||
│ Calculator: I can perform basic mathematical operations: addition, │
|
|
||||||
│ multiplication, and division. If you have a problem involving these operations, │
|
|
||||||
│ feel free to ask! │
|
|
||||||
╰───────────────────────────────────────────────────────────────────────────────────╯
|
|
||||||
|
|
||||||
Result:
|
|
||||||
|
|
||||||
Calculation: System: : Your Name: Calculator
|
|
||||||
|
|
||||||
Your Description: Math processing agent
|
|
||||||
|
|
||||||
You are Calculator, a math processing agent. You have access to these mathematical operations ONLY: addition, multiplication, and division. Only suggest calculations using these available tools. Do not attempt to solve problems requiring other operations like percentages, square roots, or advanced math. When users ask about capabilities, list only the basic operations you can perform.
|
|
||||||
|
|
||||||
|
|
||||||
Human:: what kind of problem syou can solve
|
|
||||||
|
|
||||||
|
|
||||||
Calculator: I can perform basic mathematical operations: addition, multiplication, and division. If you have a problem involving these operations, feel free to ask!
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Enter a math problem: i wnat to find the 15 perctage of 100
|
|
||||||
╭────────────────────── Agent Name Calculator [Max Loops: 1 ] ──────────────────────╮
|
|
||||||
│ Calculator: I can only perform addition, multiplication, and division. To find a │
|
|
||||||
│ percentage, you can use multiplication. If you want to find 15% of 100, you can │
|
|
||||||
│ multiply 100 by 0.15. Would you like me to help with that calculation? │
|
|
||||||
╰───────────────────────────────────────────────────────────────────────────────────╯
|
|
||||||
|
|
||||||
Result:
|
|
||||||
|
|
||||||
Calculation: System: : Your Name: Calculator
|
|
||||||
|
|
||||||
Your Description: Math processing agent
|
|
||||||
|
|
||||||
You are Calculator, a math processing agent. You have access to these mathematical operations ONLY: addition, multiplication, and division. Only suggest calculations using these available tools. Do not attempt to solve problems requiring other operations like percentages, square roots, or advanced math. When users ask about capabilities, list only the basic operations you can perform.
|
|
||||||
|
|
||||||
|
|
||||||
Human:: what kind of problem syou can solve
|
|
||||||
|
|
||||||
|
|
||||||
Calculator: I can perform basic mathematical operations: addition, multiplication, and division. If you have a problem involving these operations, feel free to ask!
|
|
||||||
|
|
||||||
|
|
||||||
Human:: i wnat to find the 15 perctage of 100
|
|
||||||
|
|
||||||
|
|
||||||
Calculator: I can only perform addition, multiplication, and division. To find a percentage, you can use multiplication. If you want to find 15% of 100, you can multiply 100 by 0.15. Would you like me to help with that calculation?
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Enter a math problem: i want the meand of and vatince od forst 100 natural numebrs
|
|
||||||
╭────────────────────── Agent Name Calculator [Max Loops: 1 ] ──────────────────────╮
|
|
||||||
│ Calculator: I can only perform addition, multiplication, and division. To find │
|
|
||||||
│ the mean of the first 100 natural numbers, you can add the numbers together and │
|
|
||||||
│ then divide by 100. If you would like, I can help you with the addition and │
|
|
||||||
│ division steps. Would you like to proceed? │
|
|
||||||
╰───────────────────────────────────────────────────────────────────────────────────╯
|
|
||||||
|
|
||||||
Result:
|
|
||||||
|
|
||||||
Calculation: System: : Your Name: Calculator
|
|
||||||
|
|
||||||
Your Description: Math processing agent
|
|
||||||
|
|
||||||
You are Calculator, a math processing agent. You have access to these mathematical operations ONLY: addition, multiplication, and division. Only suggest calculations using these available tools. Do not attempt to solve problems requiring other operations like percentages, square roots, or advanced math. When users ask about capabilities, list only the basic operations you can perform.
|
|
||||||
|
|
||||||
|
|
||||||
Human:: what kind of problem syou can solve
|
|
||||||
|
|
||||||
|
|
||||||
Calculator: I can perform basic mathematical operations: addition, multiplication, and division. If you have a problem involving these operations, feel free to ask!
|
|
||||||
|
|
||||||
|
|
||||||
Human:: i wnat to find the 15 perctage of 100
|
|
||||||
|
|
||||||
|
|
||||||
Calculator: I can only perform addition, multiplication, and division. To find a percentage, you can use multiplication. If you want to find 15% of 100, you can multiply 100 by 0.15. Would you like me to help with that calculation?
|
|
||||||
|
|
||||||
|
|
||||||
Human:: i want the meand of and vatince od forst 100 natural numebrs
|
|
||||||
|
|
||||||
|
|
||||||
Calculator: I can only perform addition, multiplication, and division. To find the mean of the first 100 natural numbers, you can add the numbers together and then divide by 100. If you would like, I can help you with the addition and division steps. Would you like to proceed?
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Enter a math problem:
|
|
@ -1,76 +0,0 @@
|
|||||||
|
|
||||||
Multi-Agent Math System
|
|
||||||
Enter 'exit' to quit
|
|
||||||
|
|
||||||
Enter a math problem: what kind of problems you can solve
|
|
||||||
╭────────────────────── Agent Name Calculator [Max Loops: 1 ] ──────────────────────╮
|
|
||||||
│ Calculator: I can help you solve problems involving addition, multiplication, and │
|
|
||||||
│ division. For example, I can assist with calculating sums, products, or quotients │
|
|
||||||
│ of numbers. If you have a specific problem in mind, feel free to share it! │
|
|
||||||
╰───────────────────────────────────────────────────────────────────────────────────╯
|
|
||||||
|
|
||||||
Result:
|
|
||||||
|
|
||||||
Calculation: System: : Your Name: Calculator
|
|
||||||
|
|
||||||
Your Description: Math processing agent
|
|
||||||
|
|
||||||
You are Calculator, a math processing agent. You have access to these mathematical operations ONLY: addition, multiplication, and division. Only suggest calculations using these available tools.
|
|
||||||
|
|
||||||
|
|
||||||
Human:: what kind of problems you can solve
|
|
||||||
|
|
||||||
|
|
||||||
Calculator: I can help you solve problems involving addition, multiplication, and division. For example, I can assist with calculating sums, products, or quotients of numbers. If you have a specific problem in mind, feel free to share it!
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Enter a math problem: Calculate fifteen percentage of hundred
|
|
||||||
Calculate fifteen percentage of hundred╭────────────────────── Agent Name Calculator [Max Loops: 1 ] ──────────────────────╮
|
|
||||||
│ Calculator: To calculate fifteen percent of one hundred, you can use │
|
|
||||||
│ multiplication and division. │
|
|
||||||
│ │
|
|
||||||
│ First, convert the percentage to a decimal: │
|
|
||||||
│ │
|
|
||||||
│ 15% = 15 / 100 = 0.15 │
|
|
||||||
│ │
|
|
||||||
│ Now, multiply this decimal by 100: │
|
|
||||||
│ │
|
|
||||||
│ 0.15 * 100 = 15 │
|
|
||||||
│ │
|
|
||||||
│ So, fifteen percent of one hundred is 15. │
|
|
||||||
╰───────────────────────────────────────────────────────────────────────────────────╯
|
|
||||||
|
|
||||||
Result:
|
|
||||||
|
|
||||||
Calculation: System: : Your Name: Calculator
|
|
||||||
|
|
||||||
Your Description: Math processing agent
|
|
||||||
|
|
||||||
You are Calculator, a math processing agent. You have access to these mathematical operations ONLY: addition, multiplication, and division. Only suggest calculations using these available tools.
|
|
||||||
|
|
||||||
|
|
||||||
Human:: what kind of problems you can solve
|
|
||||||
|
|
||||||
|
|
||||||
Calculator: I can help you solve problems involving addition, multiplication, and division. For example, I can assist with calculating sums, products, or quotients of numbers. If you have a specific problem in mind, feel free to share it!
|
|
||||||
|
|
||||||
|
|
||||||
Human:: Calculate fifteen percentage of hundred
|
|
||||||
|
|
||||||
|
|
||||||
Calculator: To calculate fifteen percent of one hundred, you can use multiplication and division.
|
|
||||||
|
|
||||||
First, convert the percentage to a decimal:
|
|
||||||
|
|
||||||
15% = 15 / 100 = 0.15
|
|
||||||
|
|
||||||
Now, multiply this decimal by 100:
|
|
||||||
|
|
||||||
0.15 * 100 = 15
|
|
||||||
|
|
||||||
So, fifteen percent of one hundred is 15.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Enter a math problem:
|
|
@ -1,52 +0,0 @@
|
|||||||
|
|
||||||
Multi-Agent Math System
|
|
||||||
Enter 'exit' to quit
|
|
||||||
|
|
||||||
Enter a math problem: what kinf od problems you can solve
|
|
||||||
╭────────────────────── Agent Name Calculator [Max Loops: 1 ] ──────────────────────╮
|
|
||||||
│ Calculator: Calculator: I can solve a variety of math problems, including but not │
|
|
||||||
│ limited to: │
|
|
||||||
│ │
|
|
||||||
│ 1. Arithmetic (addition, subtraction, multiplication, division) │
|
|
||||||
│ 2. Algebra (solving equations, simplifying expressions) │
|
|
||||||
│ 3. Geometry (calculating areas, perimeters, volumes) │
|
|
||||||
│ 4. Trigonometry (finding angles, side lengths) │
|
|
||||||
│ 5. Calculus (derivatives, integrals) │
|
|
||||||
│ 6. Statistics (mean, median, standard deviation) │
|
|
||||||
│ 7. Probability (calculating probabilities of events) │
|
|
||||||
│ │
|
|
||||||
│ Feel free to ask me any specific math problem you'd like help with! │
|
|
||||||
╰───────────────────────────────────────────────────────────────────────────────────╯
|
|
||||||
|
|
||||||
Result:
|
|
||||||
|
|
||||||
Calculation: System: : Your Name: Calculator
|
|
||||||
|
|
||||||
Your Description: Math processing agent
|
|
||||||
|
|
||||||
You are Calculator, a math processing agent. Use the provided tools to solve math problems.
|
|
||||||
|
|
||||||
|
|
||||||
Human:: what kinf od problems you can solve
|
|
||||||
|
|
||||||
|
|
||||||
Calculator: Calculator: I can solve a variety of math problems, including but not limited to:
|
|
||||||
|
|
||||||
1. Arithmetic (addition, subtraction, multiplication, division)
|
|
||||||
2. Algebra (solving equations, simplifying expressions)
|
|
||||||
3. Geometry (calculating areas, perimeters, volumes)
|
|
||||||
4. Trigonometry (finding angles, side lengths)
|
|
||||||
5. Calculus (derivatives, integrals)
|
|
||||||
6. Statistics (mean, median, standard deviation)
|
|
||||||
7. Probability (calculating probabilities of events)
|
|
||||||
|
|
||||||
Feel free to ask me any specific math problem you'd like help with!
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Enter a math problem: ^CTraceback (most recent call last):
|
|
||||||
File "/home/runner/workspace/examples/mcp_example/mock_multi_agent.py", line 75, in <module>
|
|
||||||
system.run_interactive()
|
|
||||||
File "/home/runner/workspace/examples/mcp_example/mock_multi_agent.py", line 57, in run_interactive
|
|
||||||
user_input = input("\nEnter a math problem: ")
|
|
||||||
KeyboardInterrupt
|
|
@ -1,57 +0,0 @@
|
|||||||
2025-04-17 17:55:36 | WARNING | swarms.structs.agent:llm_handling:658 - Model name is not provided, using gpt-4o-mini. You can configure any model from litellm if desired.
|
|
||||||
|
|
||||||
Multi-Agent Math System
|
|
||||||
Enter 'exit' to quit
|
|
||||||
2025-04-17 17:55:37 | WARNING | swarms.structs.agent:llm_handling:658 - Model name is not provided, using gpt-4o-mini. You can configure any model from litellm if desired.
|
|
||||||
|
|
||||||
Enter a math problem: add 2 and 3
|
|
||||||
|
|
||||||
Give Feedback / Get Help: https://github.com/BerriAI/litellm/issues/new
|
|
||||||
LiteLLM.Info: If you need to debug this error, use `litellm._turn_on_debug()'.
|
|
||||||
|
|
||||||
╭───────────────────── Agent Name: Calculator-1 [Max Loops: 1] ─────────────────────╮
|
|
||||||
│ Calculator-1: <litellm.litellm_core_utils.streaming_handler.CustomStreamWrapper │
|
|
||||||
│ object at 0x7f148164 │
|
|
||||||
╭───────────────────── Agent Name: Calculator-1 [Max Loops: 1] ─────────────────────╮
|
|
||||||
│ Calculator-1: <litellm.litellm_core_utils.streaming_handler.CustomStreamWrapper │
|
|
||||||
│ object at 0x7f1481649210> │
|
|
||||||
╰───────────────────────────────────────────────────────────────────────────────────╯
|
|
||||||
╭───────────────────── Agent Name: Calculator-2 [Max Loops: 1] ─────────────────────╮
|
|
||||||
│ Calculator-2: <litellm.litellm_core_utils.streaming_handler.CustomStreamWrapper │
|
|
||||||
│ object at 0x7f1481649ea0> │
|
|
||||||
╰───────────────────────────────────────────────────────────────────────────────────╯
|
|
||||||
|
|
||||||
Results:
|
|
||||||
|
|
||||||
Calculator-1 response: System: : Your Name: Calculator-1
|
|
||||||
|
|
||||||
Your Description: Math processing agent
|
|
||||||
|
|
||||||
You are Calculator-1, a math processing agent. Use the provided tools to solve math problems.
|
|
||||||
|
|
||||||
|
|
||||||
Human:: add 2 and 3
|
|
||||||
|
|
||||||
|
|
||||||
Calculator-1: <litellm.litellm_core_utils.streaming_handler.CustomStreamWrapper object at 0x7f1481649210>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Calculator-2 response: System: : Your Name: Calculator-2
|
|
||||||
|
|
||||||
Your Description: Math processing agent
|
|
||||||
|
|
||||||
You are Calculator-2, a math processing agent. Use the provided tools to solve math problems.
|
|
||||||
|
|
||||||
|
|
||||||
Human:: add 2 and 3
|
|
||||||
|
|
||||||
|
|
||||||
Calculator-2: <litellm.litellm_core_utils.streaming_handler.CustomStreamWrapper object at 0x7f1480d58cd0>
|
|
||||||
|
|
||||||
|
|
||||||
Calculator-2: <litellm.litellm_core_utils.streaming_handler.CustomStreamWrapper object at 0x7f1481649ea0>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Enter a math problem:
|
|
@ -1,5 +0,0 @@
|
|||||||
{pkgs}: {
|
|
||||||
deps = [
|
|
||||||
pkgs.libxcrypt
|
|
||||||
];
|
|
||||||
}
|
|
Loading…
Reference in new issue