diff options
Diffstat (limited to 'test_llamachat.py')
| -rwxr-xr-x | test_llamachat.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test_llamachat.py b/test_llamachat.py index 936a18d..a766382 100755 --- a/test_llamachat.py +++ b/test_llamachat.py @@ -967,6 +967,12 @@ def test_search_tool_schema(): assert out == [("content", "hi")] assert sent == [None], sent + # One search per turn by default: a follow-up call arrives as literal + # <tool_call> XML rather than a structured call, and a turn that ends on + # one shows the user an empty reply. + assert config.DEFAULTS["max_searches"] == 1 + assert config.load(Path("/nonexistent/config.toml")).max_searches == 1 + # A configured-but-urlless setup resolves to disabled at config load. with tempfile.TemporaryDirectory() as tmp: path = Path(tmp) / "config.toml" |
