Skip to content

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

chore: files changed crates/openhuman-core/src/core/mod.rs,crates/openhuman-core/src/core/runtime/co

Steven Enamakel77d8f27f2042
diff --git a/crates/openhuman-core/src/core/mod.rs b/crates/openhuman-core/src/core/mod.rs
index b8503de8c7..51d03e7879 100644
--- a/crates/openhuman-core/src/core/mod.rs
+++ b/crates/openhuman-core/src/core/mod.rs
@@ -36,6 +36,7 @@ pub mod sentry_transport;
pub mod server_launcher;
pub mod session_expiry;
pub mod shutdown;
+pub mod slots;
pub mod structured_error;
pub mod subsystem;
pub mod subsystems_cli;
diff --git a/crates/openhuman-core/src/core/runtime/context.rs b/crates/openhuman-core/src/core/runtime/context.rs
index 4ffde87879..8f1d704447 100644
--- a/crates/openhuman-core/src/core/runtime/context.rs
+++ b/crates/openhuman-core/src/core/runtime/context.rs
@@ -106,6 +106,11 @@ pub struct CoreContext {
/// Inherited unchanged by every context derived through
/// [`CoreContext::derive_with`].
backend_transport: Option<Arc<dyn crate::backend::transport::BackendTransport>>,
+ /// Hook registrations bound to this context (see [`crate::core::slots`]).
+ /// Empty unless the host supplied some through
+ /// [`CoreBuilder::extensions`](crate::core::runtime::CoreBuilder::extensions);
+ /// inherited by every context derived through [`CoreContext::derive_with`].
+ extensions: crate::core::slots::Extensions,
/// Explicit authority on this derived turn context.
turn_origin: Option<crate::agent::turn_origin::AgentTurnOrigin>,
/// Durable relay conversation carried by the immutable turn context.
@@ -437,6 +442,12 @@ impl CoreContext {
self.session_agent.as_deref()
}
+ /// The hook registrations bound to this context. Shared (not copied) by
+ /// derived contexts.
+ pub fn extensions(&self) -> &crate::core::slots::Extensions {
+ &self.extensions
+ }
+
/// The backend transport bound to this context, if the host supplied one.
pub fn backend_transport(
&self,