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: diff --git a/src/smolagents/agents.py b/src/smolagents/agents.py index c62b989..3d9058b 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(): diff --git a/src/smolagents/local_python_executor.py b/src/smolagents/local_python_executor.py index 1464067..db935a6 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. """ diff --git a/src/smolagents/tools.py b/src/smolagents/tools.py index 4504bc7..d08d25c 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