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
fix(transport): preserve error source when wrapping transport failures
Steven Enamakelabf10f7ace05
diff --git a/crates/openhuman-tinyhumans/src/transport/error.rs b/crates/openhuman-tinyhumans/src/transport/error.rsindex 6c43ed5fca..b29d65a1e2 100644--- a/crates/openhuman-tinyhumans/src/transport/error.rs+++ b/crates/openhuman-tinyhumans/src/transport/error.rs@@ -3,7 +3,7 @@//! the integrations client see exactly the shapes they saw when they called//! the SDK directly.-use openhuman_embed::BackendTransportError;+use super::port::BackendTransportError;use reqwest::Method;use tinyhumans_sdk::Error as SdkError;diff --git a/crates/openhuman-tinyhumans/src/transport/mod.rs b/crates/openhuman-tinyhumans/src/transport/mod.rsindex 14f1f8a75c..aca857087b 100644--- a/crates/openhuman-tinyhumans/src/transport/mod.rs+++ b/crates/openhuman-tinyhumans/src/transport/mod.rs@@ -7,16 +7,18 @@ use std::sync::Arc;use async_trait::async_trait;use openhuman_embed::__host::security::credentials::session_support::BackendCredential;-use openhuman_embed::{- BackendRequest, BackendTransport, BackendTransportError, BaseUrlPurpose, TransportProfile,-};use reqwest::Method;use serde_json::Value;use tinyhumans_sdk::TinyHumansClient;mod error;+mod port;pub use error::map_sdk_error;+pub use port::{+ BackendRequest, BackendTransport, BackendTransportError, BaseUrlPurpose, QueryParam,+ TransportProfile,+};/// One `reqwest::Client` per [`TransportProfile`], each built from/// [`backend_client_builder`](crate::backend::headers::backend_client_builder)@@ -41,7 +43,7 @@ impl SdkBackendTransport {}/// [`Self::new`] as a shared handle ready for- /// [`install_backend_transport`](openhuman_embed::install_backend_transport).+ /// the process-wide transport (see [`crate::client::shared_transport`]).pub fn shared() -> anyhow::Result<Arc<dyn BackendTransport>> {Ok(Arc::new(Self::new()?))}