The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
feat(artifacts): add create_artifact_for_call with optional tool_call_id
Steven Enamakeleb175e190a74
diff --git a/crates/openhuman-core/src/agent/artifacts/store.rs b/crates/openhuman-core/src/agent/artifacts/store.rsindex 09980ea11b..4063c115b2 100644--- a/crates/openhuman-core/src/agent/artifacts/store.rs+++ b/crates/openhuman-core/src/agent/artifacts/store.rs@@ -431,6 +431,22 @@ pub async fn create_artifact(kind: super::types::ArtifactKind,title: &str,extension: &str,+) -> Result<(ArtifactMeta, PathBuf), String> {+ create_artifact_for_call(workspace_dir, kind, title, extension, None).await+}++/// As [`create_artifact`], but also records the provider-assigned+/// `tool_call_id` of the producing invocation (typically+/// `crate::tools::host_extensions::tool_call_id(ctx)`) on the artifact's+/// metadata and on the `ArtifactPending` event this publishes, so the UI+/// can correlate the card with the tool-call bubble. `None` behaves+/// exactly like [`create_artifact`].+pub async fn create_artifact_for_call(+ workspace_dir: &Path,+ kind: super::types::ArtifactKind,+ title: &str,+ extension: &str,+ tool_call_id: Option<&str>,) -> Result<(ArtifactMeta, PathBuf), String> {let trimmed_title = title.trim();if trimmed_title.is_empty() {