Skip to content

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

fix(config): stop re-exporting TinyAgents' ToolRendering from the config API

M3gA-Mind5761ba298ffa
diff --git a/crates/openhuman-core/src/agent/tinyagents/context_wiring_tests.rs b/crates/openhuman-core/src/agent/tinyagents/context_wiring_tests.rs
index c4011df70d..673860a111 100644
--- a/crates/openhuman-core/src/agent/tinyagents/context_wiring_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/context_wiring_tests.rs
@@ -158,7 +158,7 @@ async fn a_markers_compaction_sends_no_tool_output_and_caps_the_summary() {
model: summarizer_model.clone(),
model_id: "scaledown/summarize".into(),
settings: crate::config::SummarizerSettings {
- tool_rendering: crate::config::ToolRendering::Markers,
+ tool_rendering: tinyagents_harness::summarization::ToolRendering::Markers,
max_output_tokens: Some(4_000),
},
},
diff --git a/crates/openhuman-core/src/config/mod.rs b/crates/openhuman-core/src/config/mod.rs
index 891a28cfd7..da199e1042 100644
--- a/crates/openhuman-core/src/config/mod.rs
+++ b/crates/openhuman-core/src/config/mod.rs
@@ -70,7 +70,7 @@ pub use schema::{
// above stays byte-identical and rustfmt-stable.
pub use schema::RequiredOutputContract;
pub use schema::{InboundDebounceConfig, InboundDebounceOverride};
-pub use schema::{SummarizerSettings, ToolRendering};
+pub use schema::SummarizerSettings;
pub use schemas::{
all_controller_schemas as all_config_controller_schemas,
all_registered_controllers as all_config_registered_controllers,
diff --git a/crates/openhuman-core/src/config/schema/context.rs b/crates/openhuman-core/src/config/schema/context.rs
index f2a893567c..b17eadf7a2 100644
--- a/crates/openhuman-core/src/config/schema/context.rs
+++ b/crates/openhuman-core/src/config/schema/context.rs
@@ -11,7 +11,7 @@
use serde::{Deserialize, Serialize};
pub use tinyagents_harness::config::{CompactionSettings, CompactionStrategy, ContextConfig};
-pub use tinyagents_harness::summarization::ToolRendering;
+use tinyagents_harness::summarization::ToolRendering;
/// The whole `[context]` table: TinyAgents' [`ContextConfig`] and the
/// compaction summarizer's OpenHuman-side settings.
diff --git a/crates/openhuman-core/src/config/schema/load/env_overlay/context.rs b/crates/openhuman-core/src/config/schema/load/env_overlay/context.rs
index 00d39bbf24..eabbf193fd 100644
--- a/crates/openhuman-core/src/config/schema/load/env_overlay/context.rs
+++ b/crates/openhuman-core/src/config/schema/load/env_overlay/context.rs
@@ -193,8 +193,8 @@ impl Config {
if let Some(val) = env.get("OPENHUMAN_CONTEXT_SUMMARIZER_TOOL_RENDERING") {
let rendering = match val.trim().to_ascii_lowercase().as_str() {
"" => None,
- "full" => Some(crate::config::ToolRendering::Full),
- "markers" => Some(crate::config::ToolRendering::Markers),
+ "full" => Some(tinyagents_harness::summarization::ToolRendering::Full),
+ "markers" => Some(tinyagents_harness::summarization::ToolRendering::Markers),
_ => {
tracing::warn!(
value = %val.trim(),
diff --git a/crates/openhuman-core/src/config/schema/mod.rs b/crates/openhuman-core/src/config/schema/mod.rs
index 8e5a9a51e2..a8fc84cda5 100644
--- a/crates/openhuman-core/src/config/schema/mod.rs
+++ b/crates/openhuman-core/src/config/schema/mod.rs
@@ -126,7 +126,6 @@ pub use channels::{
pub(crate) use cli_overrides::set_cli_inference_overrides;
pub use context::{
CompactionSettings, CompactionStrategy, ContextConfig, ContextSettings, SummarizerSettings,
- ToolRendering,
};
pub use cron::CronConfig;
pub use dashboard::{DashboardConfig, DiagramViewerConfig, EventStreamConfig, ModelHealthConfig};