tinyhumansai/openhuman · error

artifact_get

Error message

artifact_get: {e}

What it means

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.

Solutions

  1. Verify the artifact_id is a real UUID — call artifact_list to discover valid ids.
  2. Re-read the cause after `artifact_get:` for the store-level detail.
  3. Retry if the failure was transient; a consistently unknown id means the artifact was deleted or never existed.
Defensive patterns

Strategy: try-catch

When it happens

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

Common situations: See trigger scenarios.


AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17). Data as JSON: /api/errors/e6dc3d8417203471. Report an issue: GitHub.

Appendix: source

Thrown at src/openhuman/agent/artifacts/tools.rs:139

         first to discover ids."
    }

    fn parameters_schema(&self) -> serde_json::Value {
        json!({
            "type": "object",
            "properties": {
                "artifact_id": { "type": "string", "description": "The artifact id (UUID) to fetch." }
            },
            "required": ["artifact_id"]
        })
    }

    async fn execute(&self, args: serde_json::Value) -> anyhow::Result<ToolResult> {
        log::debug!("[tool][artifacts] get invoked");
        let id = read_required_str(&args, "artifact_id")?;
        let outcome = ops::ai_get_artifact(&self.config, &id)
            .await
            .map_err(|e| anyhow::anyhow!("artifact_get: {e}"))?;
        Ok(ToolResult::success(serde_json::to_string(&outcome.value)?))
    }

    fn is_concurrency_safe(&self, _args: &serde_json::Value) -> bool {
        true
    }
}

/// Delete an artifact directory and all its contents. **Irreversible** —
/// ships default-OFF (`Dangerous`).
pub struct ArtifactDeleteTool {
    config: Arc<Config>,
}

impl ArtifactDeleteTool {
    pub fn new(config: Arc<Config>) -> Self {
        Self { config }
    }

View on GitHub (pinned to 7491200858)