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
docs(openhuman-embed): clarify provider invocation and retry semantics
Steven Enamakeld2a5241698b6
diff --git a/crates/openhuman-embed/README.md b/crates/openhuman-embed/README.mdindex dc1608304a..a215f4d9fa 100644--- a/crates/openhuman-embed/README.md+++ b/crates/openhuman-embed/README.md@@ -33,11 +33,13 @@ awaiting cancellation, for example in a spawned task.## Observing provider dispatchesAttach `Completer::physical_observer` to receive one content-free terminal event-for each admitted provider dispatch. Structured JSON repairs produce separate-events, while request and response content remains private. With a model budget,+for each admitted provider `ChatModel` invocation. Structured JSON repairs+produce separate events, while request and response content remains private.+Transport-level compatibility retries performed inside one provider invocation+remain within that event, and its latency includes those retries. With a model budget,the explicit and turn-scoped observers run inside admission and after gatewaycharge normalization, so they see the same authoritative amount the ledger-settles. A budget refusal before dispatch creates no physical event. The+settles. A budget refusal before provider invocation creates no event. Theexisting `CompletionObserver` remains a once-per-logical-call callback.## Steering one turndiff --git a/crates/openhuman-embed/src/complete.rs b/crates/openhuman-embed/src/complete.rsindex 0ca427ee30..7bf6206c06 100644--- a/crates/openhuman-embed/src/complete.rs+++ b/crates/openhuman-embed/src/complete.rs@@ -241,8 +241,10 @@ impl CompletionRequest {self}- /// Bound each physical provider HTTP request, including repair attempts.- /// This leaves the logical call deadline and cancellation scope unchanged.+ /// Bound each provider request, including structured-repair attempts.+ /// Provider-internal compatibility retries remain within that request and+ /// use the same timeout. This leaves the logical call deadline and+ /// cancellation scope unchanged.pub fn timeout_ms(mut self, timeout_ms: u64) -> Self {self.timeout_ms = Some(timeout_ms);self@@ -502,11 +504,14 @@ impl Completer {self}- /// Observe each admitted provider dispatch without request or response content.+ /// Observe each admitted provider `ChatModel` invocation without request+ /// or response content.////// With a budget, the observer receives charge-normalized usage after/// admission, matching the amount settled by the ledger. A refusal before- /// provider dispatch does not produce a physical-dispatch event.+ /// provider invocation does not produce an event. Structured repairs use+ /// separate invocations. Transport-level compatibility retries performed+ /// inside one provider invocation remain part of its event and latency.pub fn physical_observer(mut self, observer: Arc<dyn PhysicalDispatchObserver>) -> Self {self.physical_observer = Some(observer);self