The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
fix(session_host): remove learned context from system prompt builder
Steven Enamakel05a07e1584cf
diff --git a/crates/openhuman-core/src/agent/session_host/turn/context.rs b/crates/openhuman-core/src/agent/session_host/turn/context.rsindex 0619aa63af..066ad3291f 100644--- a/crates/openhuman-core/src/agent/session_host/turn/context.rs+++ b/crates/openhuman-core/src/agent/session_host/turn/context.rs@@ -1,17 +1,15 @@//! History, context, and system prompt management.use super::super::types::OpenHumanSessionHost;-use crate::agent::prompts::{- tool_call_format_from_dialect, LearnedContextData, PromptContext, PromptTool,-};+use crate::agent::prompts::{tool_call_format_from_dialect, PromptContext, PromptTool};use crate::tools::agent_policy::render_tool_policy_boundary;use anyhow::Result;impl OpenHumanSessionHost {/// Builds the system prompt for the current turn, including tool- /// instructions and learned context.- pub fn build_system_prompt(&self, learned: LearnedContextData) -> Result<String> {+ /// instructions.+ pub fn build_system_prompt(&self) -> Result<String> {// `visible_tool_specs` holds shared `Arc<ToolSpec>` leaves. Materialise// the canonical dialect input for this prompt build.let visible_specs_owned: Vec<tinytools::ToolSpec> = self@@ -56,7 +54,6 @@ impl OpenHumanSessionHost {tools: &prompt_tools,workflows: &self.workflows,dispatcher_instructions: &instructions,- learned,visible_tool_names: &prompt_visible_tool_names,tool_call_format: tool_call_format_from_dialect(self.tool_dispatcher.tool_call_format(),