Making config optional with default value as it's WIP and Adding new treatment for wrong agent tool calls

This commit is contained in:
Joao Moura
2023-12-04 23:58:48 -08:00
parent 2ff9ad8a7f
commit 9be65e03d7
4 changed files with 18 additions and 4 deletions

View File

@@ -29,6 +29,13 @@ def test_ask_question():
assert result == "As a researcher, my feelings towards AI Agents are neutral. I neither love nor hate them. I study and analyze them objectively to understand their potential, capabilities, and limitations. While I appreciate the technological advancement they represent, my job is to approach them from an analytical and scientific perspective."
def test_delegate_work_with_wrong_input():
result = tools.ask_question(
command="writer|share your take on AI Agents"
)
assert result == "Error executing tool. Missing exact 3 pipe (|) separated values."
def test_delegate_work_to_wrong_agent():
result = tools.ask_question(
command="writer|share your take on AI Agents|I heard you hate them"