From ef01258380cae24e51ca30d45a9b5b8cf4dc43a7 Mon Sep 17 00:00:00 2001 From: oliveredget <188809800+oliveredget@users.noreply.github.com> Date: Sat, 4 Jan 2025 14:20:44 +0800 Subject: [PATCH 1/4] Fix typo in docs/source/en/examples/multiagents.md --- docs/source/en/examples/multiagents.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/en/examples/multiagents.md b/docs/source/en/examples/multiagents.md index 6294e23..1b4cfcb 100644 --- a/docs/source/en/examples/multiagents.md +++ b/docs/source/en/examples/multiagents.md @@ -169,7 +169,7 @@ manager_agent = CodeAgent( That's all! Now let's run our system! We select a question that requires both some calculation and research: ```py -answer = manager_agent.run("If LLM trainings continue to scale up at the current rythm until 2030, what would be the electric power in GW required to power the biggest training runs by 2030? What does that correspond to, compared to some contries? Please provide a source for any number used.") +answer = manager_agent.run("If LLM trainings continue to scale up at the current rhythm until 2030, what would be the electric power in GW required to power the biggest training runs by 2030? What does that correspond to, compared to some contries? Please provide a source for any number used.") ``` We get this report as the answer: From d7c9486ca61e08f73e7b2f821ff97c76c2052675 Mon Sep 17 00:00:00 2001 From: oliveredget <188809800+oliveredget@users.noreply.github.com> Date: Sat, 4 Jan 2025 14:20:51 +0800 Subject: [PATCH 2/4] Fix typo in src/smolagents/agents.py --- src/smolagents/agents.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smolagents/agents.py b/src/smolagents/agents.py index a311876..03fcc3e 100644 --- a/src/smolagents/agents.py +++ b/src/smolagents/agents.py @@ -120,7 +120,7 @@ def format_prompt_with_tools( def show_agents_descriptions(managed_agents: Dict): managed_agents_descriptions = """ You can also give requests to team members. -Calling a team member works the same as for calling a tool: simply, the only argument you can give in the call is 'request', a long string explaning your request. +Calling a team member works the same as for calling a tool: simply, the only argument you can give in the call is 'request', a long string explaining your request. Given that this team member is a real human, you should be very verbose in your request. Here is a list of the team members that you can call:""" for agent in managed_agents.values(): From 78499e3a6e11374fa2479c8e1caa7cb1ffdebb8d Mon Sep 17 00:00:00 2001 From: oliveredget <188809800+oliveredget@users.noreply.github.com> Date: Sat, 4 Jan 2025 14:20:58 +0800 Subject: [PATCH 3/4] Fix typo in src/smolagents/local_python_executor.py --- src/smolagents/local_python_executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smolagents/local_python_executor.py b/src/smolagents/local_python_executor.py index 3cb04c0..c5d43ca 100644 --- a/src/smolagents/local_python_executor.py +++ b/src/smolagents/local_python_executor.py @@ -29,7 +29,7 @@ from .utils import truncate_content, BASE_BUILTIN_MODULES class InterpreterError(ValueError): """ - An error raised when the interpretor cannot evaluate a Python expression, due to syntax error or unsupported + An error raised when the interpreter cannot evaluate a Python expression, due to syntax error or unsupported operations. """ From 468116410d83c93c7812b45c5b95a70c5bac3f79 Mon Sep 17 00:00:00 2001 From: oliveredget <188809800+oliveredget@users.noreply.github.com> Date: Sat, 4 Jan 2025 14:21:04 +0800 Subject: [PATCH 4/4] Fix typo in src/smolagents/tools.py --- src/smolagents/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smolagents/tools.py b/src/smolagents/tools.py index 010ea11..c3063b8 100644 --- a/src/smolagents/tools.py +++ b/src/smolagents/tools.py @@ -594,7 +594,7 @@ class Tool: if api_name is None: api_name = list(space_description.keys())[0] logger.warning( - f"Since `api_name` was not defined, it was automatically set to the first avilable API: `{api_name}`." + f"Since `api_name` was not defined, it was automatically set to the first available API: `{api_name}`." ) self.api_name = api_name