Skip to content

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

style: format code and reorder imports

Steven Enamakeldcb7f135d544
diff --git a/crates/openhuman-core/src/agent/harness/graph.rs b/crates/openhuman-core/src/agent/harness/graph.rs
index 524e3f0c47..56079c15d3 100644
--- a/crates/openhuman-core/src/agent/harness/graph.rs
+++ b/crates/openhuman-core/src/agent/harness/graph.rs
@@ -179,9 +179,7 @@ pub(crate) async fn run_channel_turn_via_graph(
pause_at_cap: false,
// Bound the model's per-call output (legacy parity — channel turns ran at
// the standard per-turn budget).
- max_output_tokens: Some(
- tinyagents_harness::turn_policy::AGENT_TURN_MAX_OUTPUT_TOKENS,
- ),
+ max_output_tokens: Some(tinyagents_harness::turn_policy::AGENT_TURN_MAX_OUTPUT_TOKENS),
// Context middlewares: cache-align + default tool-result byte cap (the
// channel path has no session context config to source from).
context_mw:
diff --git a/crates/openhuman-core/src/agent/session_host/driver/grounded_close.rs b/crates/openhuman-core/src/agent/session_host/driver/grounded_close.rs
index eafa5bef23..f5b560c56f 100644
--- a/crates/openhuman-core/src/agent/session_host/driver/grounded_close.rs
+++ b/crates/openhuman-core/src/agent/session_host/driver/grounded_close.rs
@@ -15,7 +15,6 @@ use tinytools_agent::dialect::ToolDialect;
use tinyagents_harness::middleware::wrap_harness_instruction;
-use tinyagents_harness::turn_policy::AGENT_TURN_MAX_OUTPUT_TOKENS;
use crate::agent::{
session_host::turn_checkpoint::{
self, build_deterministic_checkpoint, build_deterministic_final_summary_with_cause,
@@ -24,6 +23,7 @@ use crate::agent::{
},
tinyagents::{SupplementalTrace, TinyagentsTurnOutcome, TurnModelSource},
};
+use tinyagents_harness::turn_policy::AGENT_TURN_MAX_OUTPUT_TOKENS;
use tinyinference_llm::usage::BilledUsage;
/// Accounting from model calls performed after the harness loop has ended.
diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
index 45d90ece81..1aae38e194 100644
--- a/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
+++ b/crates/openhuman-core/src/agent/subagent_host/ops/runner.rs
@@ -21,13 +21,13 @@ use crate::agent::subagent_host::types::{
SubagentMode, SubagentRunError, SubagentRunOptions, SubagentRunOutcome,
};
use crate::agent::tinyagents::budget::MAX_SPAWN_DEPTH;
-use tinyagents_harness::turn_policy::AGENT_TURN_MAX_OUTPUT_TOKENS;
use crate::agent_registry::host_definition::{AgentDefinition, AgentDefinitionRegistry};
use tinyagents_definition::{
validate_tier_transition, AgentTier, IterationPolicy, PromptSource,
SandboxMode as AgentSandboxMode,
};
use tinyagents_harness::context::{current_run_depth, with_run_depth, RunConfig, RunDepth};
+use tinyagents_harness::turn_policy::AGENT_TURN_MAX_OUTPUT_TOKENS;
use tinytools::{SandboxMode as TinyagentsSandboxMode, ToolSpec, WorkspaceDescriptor};
use tinytools_std::file_state::with_file_state_agent_id;