test: Relax test_agents.py::test_builtin_tool_web_search

Signed-off-by: Yuan Tang <terrytangyuan@gmail.com>
This commit is contained in:
Yuan Tang 2025-02-18 22:24:00 -05:00
parent 6b1773d530
commit a81966f8db
No known key found for this signature in database

View file

@ -223,8 +223,6 @@ def test_builtin_tool_web_search(llama_stack_client, agent_config):
logs = [str(log) for log in EventLogger().log(response) if log is not None]
logs_str = "".join(logs)
assert "tool_execution>" in logs_str
assert "Tool:brave_search Response:" in logs_str
assert "mark zuckerberg" in logs_str.lower()
if len(agent_config["output_shields"]) > 0:
assert "No Violation" in logs_str