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
chore: files changed crates/openhuman-core/src/agent/message_convert.rs,crates/openhuman-core/src/ag
Steven Enamakel217097734e9f
diff --git a/crates/openhuman-core/src/agent/message_convert.rs b/crates/openhuman-core/src/agent/message_convert.rsindex 6d12929c6f..f451e03f81 100644--- a/crates/openhuman-core/src/agent/message_convert.rs+++ b/crates/openhuman-core/src/agent/message_convert.rs@@ -47,6 +47,21 @@ pub(crate) fn provider_messages_from_conversation(.collect()}+/// A flat row as the dialect's chat entry: the typed role, the body and the+/// passthrough metadata; the row's other fields have no dialect counterpart.+pub(crate) fn row_to_dialect_message(row: TranscriptMessage) -> DialectMessage {+ DialectMessage {+ role: match row.role.as_str() {+ "system" => DialectRole::System,+ "assistant" => DialectRole::Assistant,+ "tool" => DialectRole::Tool,+ _ => DialectRole::User,+ },+ content: row.content,+ extra_metadata: row.extra_metadata,+ }+}+fn dialect_message_to_row(message: DialectMessage) -> TranscriptMessage {let mut row = TranscriptMessage::new(message.role.as_str(), message.content);row.extra_metadata = message.extra_metadata;diff --git a/crates/openhuman-core/src/agent/session_host/runtime/accessors.rs b/crates/openhuman-core/src/agent/session_host/runtime/accessors.rsindex 0c3a5001fa..2f5215975a 100644--- a/crates/openhuman-core/src/agent/session_host/runtime/accessors.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime/accessors.rs@@ -287,7 +287,9 @@ impl OpenHumanSessionHost {.history().iter().filter_map(crate::agent::message_convert::message_to_native_chat_message)- .map(TranscriptEntry::Chat)+ .map(|row| {+ TranscriptEntry::Chat(crate::agent::message_convert::row_to_dialect_message(row))+ }).collect()}).unwrap_or_default()diff --git a/crates/openhuman-core/src/agent/session_host/runtime/turn_helpers.rs b/crates/openhuman-core/src/agent/session_host/runtime/turn_helpers.rsindex 8dc3656f87..783bb88121 100644--- a/crates/openhuman-core/src/agent/session_host/runtime/turn_helpers.rs+++ b/crates/openhuman-core/src/agent/session_host/runtime/turn_helpers.rs@@ -26,7 +26,7 @@ impl OpenHumanSessionHost {}fn conversation_message_eq(left: &TranscriptEntry, right: &TranscriptEntry) -> bool {- serde_json::to_string(left).ok() == serde_json::to_string(right).ok()+ left == right}fn message_slice_eq(left: &[TranscriptEntry], right: &[TranscriptEntry]) -> bool {diff --git a/crates/openhuman-core/src/agent/subagent_host/ops/graph.rs b/crates/openhuman-core/src/agent/subagent_host/ops/graph.rsindex 1e31bfdc28..da0992a8a1 100644--- a/crates/openhuman-core/src/agent/subagent_host/ops/graph.rs+++ b/crates/openhuman-core/src/agent/subagent_host/ops/graph.rs@@ -52,7 +52,6 @@ pub(super) use dispatch::{run_subagent_via_graph, AggregatedUsage};// `dispatch.rs` / `transcript.rs` / `worker_mirror.rs`).#[cfg(test)]use tinyagents_session::transcript::TranscriptMessage;-use tinytools_agent::dialect::TranscriptEntry;#[cfg(test)]use crate::agent::progress::AgentProgress;#[cfg(test)]