Agents planning (#31702)

* Allow planning for agents
This commit is contained in:
Aymeric Roucher
2024-07-22 10:49:57 +02:00
committed by GitHub
parent 0fdea8607d
commit b381880597
6 changed files with 770 additions and 273 deletions

View File

@@ -223,7 +223,7 @@ Action:
# check that add_base_tools will not interfere with existing tools
with pytest.raises(KeyError) as e:
agent = ReactJsonAgent(tools=toolset_3, llm_engine=fake_react_json_llm, add_base_tools=True)
assert "python_interpreter already exists in the toolbox" in str(e)
assert "already exists in the toolbox" in str(e)
# check that python_interpreter base tool does not get added to code agents
agent = ReactCodeAgent(tools=[], llm_engine=fake_react_code_llm, add_base_tools=True)