tinyhumansai/openhuman · error
learning_list_facets: {e:#}
Error message
learning_list_facets: {e:#} What it means
Error "learning_list_facets: {e:#}" thrown in tinyhumansai/openhuman.
Source
Thrown at src/openhuman/agent/learning/tools.rs:88
fn parameters_schema(&self) -> serde_json::Value {
json!({
"type": "object",
"properties": {
"class": { "type": "string", "description": "Optional class filter (style|identity|tooling|veto|goal|channel)." }
}
})
}
async fn execute(&self, args: serde_json::Value) -> anyhow::Result<ToolResult> {
log::debug!("[tool][learning] list_facets invoked");
let class_filter = args
.get("class")
.and_then(serde_json::Value::as_str)
.map(str::to_string);
let cache = get_cache()?;
let all = cache
.list_all()
.map_err(|e| anyhow::anyhow!("learning_list_facets: {e:#}"))?;
let facets: Vec<serde_json::Value> = all
.iter()
.filter(|f| f.state == FacetState::Active || f.state == FacetState::Provisional)
.filter(|f| match &class_filter {
Some(cls) => {
f.class.as_deref() == Some(cls.as_str())
|| f.key.starts_with(&format!("{cls}/"))
}
None => true,
})
.map(facet_to_json)
.collect();
Ok(ToolResult::success(serde_json::to_string(&json!({
"count": facets.len(),
"facets": facets,
}))?))
}
View on GitHub (pinned to a221052e0d)
When it happens
Trigger: Thrown at src/openhuman/agent/learning/tools.rs:88 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/f92ba5b11015511e.
Report an issue: GitHub.