fix: preserve exploration tool history and cap context budget

This commit is contained in:
chenmingxuan committed 2026-10-16 19:05:35 +08:00
1 parent ee256ad7ce
commit 621f30e437
17 files changed
+211 -23

No files matched your search

+10
View File
@@ -19,6 +19,16 @@ import pytest
from artemis.config import AgentGlobalConfig, load_agent_config
def test_transcript_budget_cannot_exceed_300k_context_ceiling():
from pydantic import ValidationError
from artemis.config.agent import MemoryTranscriptConfig
assert MemoryTranscriptConfig().context_budget_tokens == 80_000
assert MemoryTranscriptConfig(context_budget_tokens=300_000).context_budget_tokens == 300_000
with pytest.raises(ValidationError):
MemoryTranscriptConfig(context_budget_tokens=300_001)
def test_memory_defaults():
cfg = AgentGlobalConfig.model_validate({})
assert cfg.flash.step_summarizer.timeout_seconds == 120.0