Skip to content

Commit eeffeec

Browse files
committed
Use instant reasoning for Mercury recall and release 0.1.64
1 parent 3af37ab commit eeffeec

5 files changed

Lines changed: 9 additions & 5 deletions

File tree

‎app/core/entities/inner_agents.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ class _StrictModel(BaseModel):
1313

1414
InnerAgentName = Literal["build_context", "build_knowledge"]
1515
InnerAgentProviderName = str
16-
InnerAgentReasoningLevel = Literal["none", "minimal", "low", "medium", "high", "xhigh"]
16+
InnerAgentReasoningLevel = Literal[
17+
"none", "instant", "minimal", "low", "medium", "high", "xhigh"
18+
]
1719
TokenCaptureQuality = Literal["exact", "estimated"]
1820
InnerAgentRunStatus = Literal[
1921
"ok",

‎app/startup/internal_agents.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def _resolve_build_context_settings(config: InternalAgentsConfig) -> InnerAgentS
107107
settings = config.build_context.model_copy(update={"provider": provider})
108108
if provider == "inception":
109109
return settings.model_copy(
110-
update={"model": "mercury-2.5", "reasoning": "low", "timeout_seconds": 10}
110+
update={"model": "mercury-2.5", "reasoning": "instant", "timeout_seconds": 10}
111111
)
112112
return _resolve_settings(config, settings)
113113

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "shellbrain"
7-
version = "0.1.63"
7+
version = "0.1.64"
88
description = "Repo-scoped Shellbrain CLI with explicit evidence-backed writes."
99
readme = "README.md"
1010
requires-python = ">=3.11"

‎tests/config/test_recall_provider.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def test_missing_key_does_not_break_shared_dependencies(monkeypatch):
6565
assert dependencies.shadow_git_store is not None
6666
settings = dependencies.build_context_settings
6767
assert settings.model == "mercury-2.5" and settings.timeout_seconds == 10
68+
assert settings.reasoning == "instant"
6869
monkeypatch.setenv("INCEPTION_API_KEY", "test-key")
6970
assert isinstance(
7071
get_build_context_inner_agent_runner(settings), InceptionApiInnerAgentRunner

‎tests/infrastructure/test_inception_api.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def request():
1818
agent_name="build_context",
1919
provider="inception",
2020
model="mercury-2.5",
21-
reasoning="low",
21+
reasoning="instant",
2222
timeout_seconds=10,
2323
max_brief_tokens=500,
2424
query="Fix write timeouts",
@@ -65,7 +65,7 @@ def send(req, *, timeout):
6565
assert req.full_url == "https://api.inceptionlabs.ai/v1/chat/completions"
6666
assert req.get_header("Authorization") == "Bearer test-key"
6767
assert timeout == 10
68-
assert payload["reasoning_effort"] == "low"
68+
assert payload["reasoning_effort"] == "instant"
6969
assert payload["max_completion_tokens"] > 500
7070
assert payload["response_format"]["type"] == "json_schema"
7171
assert payload["response_format"]["json_schema"]["strict"] is True
@@ -74,6 +74,7 @@ def send(req, *, timeout):
7474
monkeypatch.setattr(inception_api, "urlopen", send)
7575
result = InceptionApiInnerAgentRunner(api_key="test-key").run(request())
7676
assert result.status == "ok" and not result.fallback_used
77+
assert result.reasoning == "instant"
7778
assert result.input_tokens == 200
7879
assert result.output_tokens == 80
7980
assert result.reasoning_output_tokens == 30

0 commit comments

Comments
 (0)