Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

Advance the vendored memory engine to v1.2.0\n\nPrerequisite for the diagnostics work that follows, and separable from it:\nthis commit only makes the tree build against the newer engine. It should\nland on its own — the pin has been sitting 146 commits behind, and reviewing\nthat span alongside a host change reviews neither.\n\nThe engine did not stay source-compatible. `RecallOpts` grew\n`exclude_session_id`, which is not a field this repo can leave to a default:\nthe engine's own comment explains it exists because the ambient task-local it\nreplaces reads `None` on the far side of the module boundary — a `cdylib` has\nits own statics — and this call goes through the module. `None` there hands\nthe agent back what it just said, which is a self-echo loop that looks like\nrecall working.\n\nSo the value is marked TODO rather than chosen quietly. `None` reproduces\nexactly what this call did before the field existed, which makes this commit\na build fix and nothing else; deciding it is a behaviour change and belongs\nto whoever can say what the right session scope is here. The engine's\naccessor for the ambient value is `pub(crate)`, so the host cannot simply\nforward it.\n

Shanu773296cab5f1
diff --git a/Cargo.lock b/Cargo.lock
index f409adc6e1..76af38714c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2682,7 +2682,7 @@ dependencies = [
"js-sys",
"log",
"wasm-bindgen",
- "windows-core 0.57.0",
+ "windows-core 0.58.0",
]
[[package]]
@@ -6321,6 +6321,8 @@ dependencies = [
[[package]]
name = "tinyagents"
version = "2.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5f0c44e010c8c98ce8e61ff7116d87095234c1f415a2a9d35532bbfec974a1bc"
dependencies = [
"async-trait",
"base64 0.22.1",
@@ -6534,7 +6536,7 @@ dependencies = [
[[package]]
name = "tinymemory"
-version = "1.1.0"
+version = "1.2.0"
dependencies = [
"anyhow",
"async-trait",
@@ -6642,6 +6644,7 @@ dependencies = [
"async-trait",
"chrono",
"log",
+ "rusqlite",
"serde",
"serde_json",
"tinycortex",
@@ -8778,3 +8781,7 @@ checksum = "27bc9d5b815bc103f142aa054f561d9187d191692ec7c2d1e2b4737f8dbd7296"
dependencies = [
"zune-core",
]
+
+[[patch.unused]]
+name = "tinyagents"
+version = "2.1.0"
diff --git a/src/openhuman/agent/tinyagents/host/agent_memory.rs b/src/openhuman/agent/tinyagents/host/agent_memory.rs
index ab8742074b..74bb9586d5 100644
--- a/src/openhuman/agent/tinyagents/host/agent_memory.rs
+++ b/src/openhuman/agent/tinyagents/host/agent_memory.rs
@@ -365,6 +365,15 @@ impl AgentMemory for OpenHumanAgentMemory {
// Widening past the requested session is a wiring decision, never a
// runtime hint.
cross_session: self.cross_session,
+ // TODO(pin bump): decide this deliberately before shipping the
+ // engine bump that introduced the field. `None` reproduces exactly
+ // what this call did before it existed — the engine falls back to
+ // its ambient task-local. But the engine's own comment says that
+ // ambient reads `None` on the far side of the module boundary,
+ // because a `cdylib` has its own statics, and this call goes
+ // through the module. So `None` here is bug-compatible, not
+ // correct: it hands the agent back what it just said.
+ exclude_session_id: None,
};
let entries = crate::openhuman::agent::tinyagents::retriever::recall_through_facade(
diff --git a/vendor/tinymemory b/vendor/tinymemory
index 1d6b997874..39eeaf0c1a 160000
--- a/vendor/tinymemory
+++ b/vendor/tinymemory
@@ -1 +1 @@
-Subproject commit 1d6b997874a06600ba0c4922708b5613497c9ffe
+Subproject commit 39eeaf0c1abf6a80fa020164924952b63af7ed2c