rename token to context limit

This commit is contained in:
Roy Han
2026-04-09 09:24:18 -07:00
parent b3e6607d43
commit 917622f9e1
3 changed files with 5 additions and 5 deletions

View File

@@ -270,7 +270,7 @@ fn compaction_event_serializes_expected_shape() {
thread_id: "thread-1".to_string(),
turn_id: "turn-1".to_string(),
trigger: CompactionTrigger::Auto,
reason: CompactionReason::TokenLimit,
reason: CompactionReason::ContextLimit,
implementation: CompactionImplementation::ResponsesCompact,
phase: CompactionPhase::MidTurn,
strategy: CompactionStrategy::Memento,
@@ -294,7 +294,7 @@ fn compaction_event_serializes_expected_shape() {
"thread_id": "thread-1",
"turn_id": "turn-1",
"trigger": "auto",
"reason": "token_limit",
"reason": "context_limit",
"implementation": "responses_compact",
"phase": "mid_turn",
"strategy": "memento",