fix: preserve exploration tool history and cap context budget
This commit is contained in:
1 parent
ee256ad7ce
commit
621f30e437
17 files changed
+211
-23
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user