mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-20 15:33:54 +00:00
test: cover X Search reasoning config propagation
This commit is contained in:
parent
5befa15aba
commit
48adc1f602
1 changed files with 5 additions and 4 deletions
|
|
@ -425,14 +425,15 @@ def test_x_search_honors_config_model_and_timeout(monkeypatch, tmp_path):
|
|||
assert captured["timeout"] == 45
|
||||
|
||||
|
||||
def test_x_search_honors_config_reasoning_effort(monkeypatch):
|
||||
def test_x_search_honors_config_reasoning_effort(monkeypatch, tmp_path):
|
||||
"""Configured reasoning effort reaches the xAI Responses request."""
|
||||
from tools.x_search_tool import x_search_tool
|
||||
|
||||
monkeypatch.setenv("XAI_API_KEY", "xai-test-key")
|
||||
monkeypatch.setattr(
|
||||
"tools.x_search_tool._load_x_search_config",
|
||||
lambda: {"reasoning_effort": "low", "retries": 0},
|
||||
monkeypatch.setenv("HERMES_HOME", str(tmp_path))
|
||||
(tmp_path / "config.yaml").write_text(
|
||||
"x_search:\n reasoning_effort: low\n retries: 0\n",
|
||||
encoding="utf-8",
|
||||
)
|
||||
captured = {}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue