Skip to content

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

docs(config): update tool result budget doc comments

Steven Enamakel95d07753e239
diff --git a/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rs b/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rs
index 178c50eeb5..8262ceadef 100644
--- a/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rs
+++ b/crates/openhuman-core/src/agent/tinyagents/middleware_tests.rs
@@ -229,7 +229,7 @@ fn compaction_enabled_mw() -> ToolOutputMiddleware {
/// A `workflow_proposal` payload with `node_count` nodes, each padded with
/// a 500-byte `note`, so the caller can force the serialized size past the
-/// ~16 KiB shared byte-budget backstop (`DEFAULT_TOOL_RESULT_BUDGET_BYTES`)
+/// ~16 KiB configured byte-budget backstop
/// — the size class a real ≥10-node graph proposal routinely reaches, and
/// exactly what used to get UTF-8-boundary-truncated into unparseable JSON
/// before the truncation exemption existed.
@@ -256,8 +256,8 @@ fn oversized_workflow_proposal_json(node_count: usize) -> String {
}
/// Middleware config isolating the byte-cap stages (3+4): tokenjuice off,
-/// no tool-declared char cap, the real `DEFAULT_TOOL_RESULT_BUDGET_BYTES`
-/// (~16 KiB) as the shared backstop, and no artifact store (so an
+/// no tool-declared char cap, the configured default (~16 KiB) as the shared
+/// backstop, and no artifact store (so an
/// over-budget non-exempt tool falls straight to inline truncation instead
/// of being persisted — deterministic to assert on).
fn truncation_probe_mw() -> ToolOutputMiddleware {
diff --git a/crates/openhuman-core/src/config/schema/agent.rs b/crates/openhuman-core/src/config/schema/agent.rs
index 283c17d7f9..a25fc03160 100644
--- a/crates/openhuman-core/src/config/schema/agent.rs
+++ b/crates/openhuman-core/src/config/schema/agent.rs
@@ -248,8 +248,7 @@ pub struct AgentConfig {
/// Maximum byte length of a single tool-result body before the
/// TinyAgents tool-output middleware budget stage truncates it. Applied
/// inline at tool-execution time (before the result enters history),
- /// so it is cache-safe. `0` disables the cap. Defaults to
- /// `DEFAULT_TOOL_RESULT_BUDGET_BYTES` (16 KiB).
+ /// so it is cache-safe. `0` disables the cap. Defaults to 16 KiB.
#[serde(default = "default_tool_result_budget_bytes")]
pub tool_result_budget_bytes: usize,