tinyhumansai/openhuman · error
learning_get_facet: {e:#}
Error message
learning_get_facet: {e:#} What it means
Error "learning_get_facet: {e:#}" thrown in tinyhumansai/openhuman.
Source
Thrown at src/openhuman/agent/learning/tools.rs:145
json!({
"type": "object",
"properties": {
"class": { "type": "string" },
"key": { "type": "string", "description": "Key suffix within the class." }
},
"required": ["class", "key"]
})
}
async fn execute(&self, args: serde_json::Value) -> anyhow::Result<ToolResult> {
log::debug!("[tool][learning] get_facet invoked");
let class_str = read_required_str(&args, "class")?;
let key_suffix = read_required_str(&args, "key")?;
let fk = full_key(&class_str, &key_suffix);
let cache = get_cache()?;
let facet = cache
.get(&fk)
.map_err(|e| anyhow::anyhow!("learning_get_facet: {e:#}"))?;
Ok(ToolResult::success(serde_json::to_string(&json!({
"found": facet.is_some(),
"facet": facet.as_ref().map(facet_to_json),
}))?))
}
fn is_concurrency_safe(&self, _args: &serde_json::Value) -> bool {
true
}
}
/// Aggregate facet-cache statistics.
pub struct LearningCacheStatsTool;
#[async_trait]
impl Tool for LearningCacheStatsTool {
fn name(&self) -> &str {
"learning_cache_stats"View on GitHub (pinned to a221052e0d)
When it happens
Trigger: Thrown at src/openhuman/agent/learning/tools.rs:145 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/46e880c15f985993.
Report an issue: GitHub.