Merge pull request #74 from oliveredget/fix

Fix typos
This commit is contained in:
Aymeric Roucher 2025-01-06 14:00:19 +01:00 committed by GitHub
commit d7044343b6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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():

View File

@ -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.
"""

View File

@ -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