tinyhumansai/openhuman · error

memory client not ready

Error message

memory client not ready

What it means

Error "memory client not ready" thrown in tinyhumansai/openhuman.

Source

Thrown at src/openhuman/agent/learning/tools.rs:32

//! forgetting, rebuilding, resetting, and the profile writers — ships
//! default-OFF via `tools/user_filter.rs` (`learning_manage` toggle), because
//! they persistently rewrite the assistant's model of the user.

use std::time::{SystemTime, UNIX_EPOCH};

use async_trait::async_trait;
use serde_json::json;

use crate::openhuman::agent::learning::cache::FacetCache;
use crate::openhuman::agent::learning::stability_detector::StabilityDetector;
use crate::openhuman::config::rpc as config_rpc;
use crate::openhuman::memory::store::profile::{FacetState, ProfileFacet, UserState};
use crate::openhuman::tools::traits::{PermissionLevel, Tool, ToolResult};

/// Acquire the profile facet cache, mirroring `learning::schemas::get_cache`.
fn get_cache() -> anyhow::Result<FacetCache> {
    let client = crate::openhuman::memory::global::client_if_ready()
        .ok_or_else(|| anyhow::anyhow!("memory client not ready"))?;
    Ok(FacetCache::new(client.profile_store()))
}

/// Compose the full facet key from a class string + key suffix.
fn full_key(class_str: &str, key_suffix: &str) -> String {
    format!("{class_str}/{key_suffix}")
}

fn facet_to_json(f: &ProfileFacet) -> serde_json::Value {
    serde_json::to_value(f).unwrap_or(serde_json::Value::Null)
}

fn read_required_str(args: &serde_json::Value, key: &str) -> anyhow::Result<String> {
    args.get(key)
        .and_then(serde_json::Value::as_str)
        .map(str::trim)
        .filter(|s| !s.is_empty())
        .map(str::to_string)

View on GitHub (pinned to a221052e0d)

When it happens

Trigger: Thrown at src/openhuman/agent/learning/tools.rs:32 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of tinyhumansai/openhuman@a221052e0d (2026-08-16). Data as JSON: /api/errors/6e8061c4574b1d5c. Report an issue: GitHub.