{"record":{"id":"e6dc3d8417203471","repo":"tinyhumansai/openhuman","slug":"artifact-get-e","errorCode":null,"errorMessage":"artifact_get: {e}","messagePattern":"artifact_get: (.+?)","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/agent/artifacts/tools.rs","lineNumber":139,"sourceCode":"         first to discover ids.\"\n    }\n\n    fn parameters_schema(&self) -> serde_json::Value {\n        json!({\n            \"type\": \"object\",\n            \"properties\": {\n                \"artifact_id\": { \"type\": \"string\", \"description\": \"The artifact id (UUID) to fetch.\" }\n            },\n            \"required\": [\"artifact_id\"]\n        })\n    }\n\n    async fn execute(&self, args: serde_json::Value) -> anyhow::Result<ToolResult> {\n        log::debug!(\"[tool][artifacts] get invoked\");\n        let id = read_required_str(&args, \"artifact_id\")?;\n        let outcome = ops::ai_get_artifact(&self.config, &id)\n            .await\n            .map_err(|e| anyhow::anyhow!(\"artifact_get: {e}\"))?;\n        Ok(ToolResult::success(serde_json::to_string(&outcome.value)?))\n    }\n\n    fn is_concurrency_safe(&self, _args: &serde_json::Value) -> bool {\n        true\n    }\n}\n\n/// Delete an artifact directory and all its contents. **Irreversible** —\n/// ships default-OFF (`Dangerous`).\npub struct ArtifactDeleteTool {\n    config: Arc<Config>,\n}\n\nimpl ArtifactDeleteTool {\n    pub fn new(config: Arc<Config>) -> Self {\n        Self { config }\n    }","sourceCodeStart":121,"sourceCodeEnd":157,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/agent/artifacts/tools.rs#L121-L157","documentation":"Error-context wrapper in the ArtifactGetTool execute path. After `read_required_str(\"artifact_id\")` succeeds, `ops::ai_get_artifact` is called; a failure there (unknown UUID, store read error) is re-emitted as `artifact_get: {e}` so the agent can tell which artifact tool failed, with the underlying cause preserved.","triggerScenarios":"Thrown at src/openhuman/agent/artifacts/tools.rs:139 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the artifact_id is a real UUID — call artifact_list to discover valid ids.","Re-read the cause after `artifact_get:` for the store-level detail.","Retry if the failure was transient; a consistently unknown id means the artifact was deleted or never existed."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}