Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/openhuman-core/src/config/schema/memory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
//! history_limit = 6
//! team_limit = 0 # other agents' turns; 0 leaves the section out
//! build_beliefs_every = 10 # turns between belief builds; 0 turns them off
//! pre_turn_timeout_ms = 1500
//! pre_turn_timeout_ms = 5000
//! date_hint = false # a model call works out which days a turn is about
//! compaction_timeout_ms = 8000
//! build_delay_secs = 300 # how far belief builds run behind the writes
Expand Down Expand Up @@ -277,7 +277,7 @@ impl Default for MemoryConversationsConfig {
/// Default `[memory.recall] budget_tokens`.
pub const DEFAULT_RECALL_BUDGET_TOKENS: u32 = 1200;
/// Default `[memory.recall] pre_turn_timeout_ms`.
pub const DEFAULT_PRE_TURN_TIMEOUT_MS: u64 = 1500;
pub const DEFAULT_PRE_TURN_TIMEOUT_MS: u64 = 5000;
/// Default `[memory.recall] compaction_timeout_ms`.
pub const DEFAULT_COMPACTION_TIMEOUT_MS: u64 = 8000;
/// Default `[memory.recall] build_delay_secs`.
Expand Down
5 changes: 5 additions & 0 deletions crates/openhuman-core/src/config/schema/memory_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ fn defaults_select_tinyhumans_with_logging_and_recall_on() {
);
}

#[test]
fn default_pre_turn_waits_five_seconds_for_memory() {
assert_eq!(MemoryConfig::default().recall.pre_turn_timeout_ms, 5_000);
}

#[test]
fn turning_the_github_split_off_survives_a_save() {
// On is the default and is not written; off is, so it reads back off.
Expand Down
2 changes: 1 addition & 1 deletion docs/specs/memory-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ brain_limit = 6
history_limit = 6
team_limit = 3 # 0 leaves other agents' turns out
build_beliefs_every = 10 # turns between belief builds; 0 = off
pre_turn_timeout_ms = 1500
pre_turn_timeout_ms = 5000
compaction_timeout_ms = 8000
build_delay_secs = 300

Expand Down
Loading