mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-08-03 01:03:59 +00:00
more robust agent test
This commit is contained in:
parent
52d1e4f85e
commit
db49fc8ad0
1 changed files with 4 additions and 0 deletions
|
@ -207,6 +207,10 @@ def test_builtin_tool_code_execution(llama_stack_client, agent_config):
|
|||
logs = [str(log) for log in EventLogger().log(response) if log is not None]
|
||||
logs_str = "".join(logs)
|
||||
|
||||
if "Tool:code_interpreter Response" not in logs_str:
|
||||
assert len(logs_str) > 0
|
||||
pytest.skip("code_interpreter not called by model")
|
||||
|
||||
assert "Tool:code_interpreter Response" in logs_str
|
||||
if "No such file or directory: 'bwrap'" in logs_str:
|
||||
assert "prime" in logs_str
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue