Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

docs(inference): document observer charge semantics and export dispatch types

Steven Enamakel4f28a90b232a
diff --git a/crates/openhuman-core/src/inference/host_runtime/ops/complete_once.rs b/crates/openhuman-core/src/inference/host_runtime/ops/complete_once.rs
index 7890099e23..f44446c0c2 100644
--- a/crates/openhuman-core/src/inference/host_runtime/ops/complete_once.rs
+++ b/crates/openhuman-core/src/inference/host_runtime/ops/complete_once.rs
@@ -65,7 +65,12 @@ pub async fn complete_once(
complete_once_observed(endpoint, request, budget, None).await
}
-/// Run one completion and observe the admitted provider invocation without content.
+/// Run one completion and observe each admitted provider invocation without content.
+///
+/// When `budget` is present, the explicit observer and the turn-scoped observer
+/// run inside budget admission and after gateway charge normalization. They
+/// therefore see the same authoritative charge the ledger settles. Without a
+/// budget, the explicit observer still sees normalized provider usage.
pub async fn complete_once_observed(
endpoint: &CompletionEndpoint,
request: ModelRequest,
diff --git a/crates/openhuman-embed/src/lib.rs b/crates/openhuman-embed/src/lib.rs
index 7a6f4fb7f3..1b34e3bddf 100644
--- a/crates/openhuman-embed/src/lib.rs
+++ b/crates/openhuman-embed/src/lib.rs
@@ -261,7 +261,9 @@ pub mod session_store {
}
pub use complete::{
ChatMessage, Completer, CompletionObserver, CompletionRequest, CompletionResponse,
- CompletionTrace, CompletionUsage,
+ CompletionTrace, CompletionUsage, PhysicalDispatchMetadata, PhysicalDispatchObserver,
+ PhysicalDispatchOutcome, PhysicalDispatchStatus, PhysicalDispatchTerminal,
+ PhysicalDispatchUsage,
};
pub use session_store::{InMemorySessionStores, SessionStoreProvider};
pub use turn::{absolute, Route, Turn, TurnOutcome, TurnRequest};