commit
d7044343b6
|
@ -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:
|
That's all! Now let's run our system! We select a question that requires both some calculation and research:
|
||||||
|
|
||||||
```py
|
```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:
|
We get this report as the answer:
|
||||||
|
|
|
@ -120,7 +120,7 @@ def format_prompt_with_tools(
|
||||||
def show_agents_descriptions(managed_agents: Dict):
|
def show_agents_descriptions(managed_agents: Dict):
|
||||||
managed_agents_descriptions = """
|
managed_agents_descriptions = """
|
||||||
You can also give requests to team members.
|
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.
|
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:"""
|
Here is a list of the team members that you can call:"""
|
||||||
for agent in managed_agents.values():
|
for agent in managed_agents.values():
|
||||||
|
|
|
@ -29,7 +29,7 @@ from .utils import truncate_content, BASE_BUILTIN_MODULES
|
||||||
|
|
||||||
class InterpreterError(ValueError):
|
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.
|
operations.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
|
@ -594,7 +594,7 @@ class Tool:
|
||||||
if api_name is None:
|
if api_name is None:
|
||||||
api_name = list(space_description.keys())[0]
|
api_name = list(space_description.keys())[0]
|
||||||
logger.warning(
|
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
|
self.api_name = api_name
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue