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
test(agent): add parent_call_id to tool event fixtures
Steven Enamakel678111e9fc5f
diff --git a/crates/openhuman-core/src/agent/progress_tracing/journal_projection_tests.rs b/crates/openhuman-core/src/agent/progress_tracing/journal_projection_tests.rsindex 0e9600dcb0..a88b95679a 100644--- a/crates/openhuman-core/src/agent/progress_tracing/journal_projection_tests.rs+++ b/crates/openhuman-core/src/agent/progress_tracing/journal_projection_tests.rs@@ -20,6 +20,7 @@ fn obs(offset: u64, ts: u64, event: AgentEvent) -> AgentObservation {fn tool_completed(call: &str, name: &str, error: Option<&str>) -> AgentEvent {AgentEvent::ToolCompleted {+ parent_call_id: None,call_id: CallId::new(call),tool_name: name.to_string(),started_at_ms: Some(1_020),@@ -54,6 +55,7 @@ fn single_turn(tool_error: Option<&str>) -> Vec<AgentObservation> {2,1_020,AgentEvent::ToolStarted {+ parent_call_id: None,call_id: CallId::new("t1"),tool_name: "lookup".to_string(),input: None,@@ -111,6 +113,7 @@ fn subagent_turn() -> Vec<AgentObservation> {3,1_030,AgentEvent::ToolStarted {+ parent_call_id: None,call_id: CallId::new("scout-tool"),tool_name: "read_file".to_string(),input: None,diff --git a/crates/openhuman-core/src/agent/tinyagents/observability_tests.rs b/crates/openhuman-core/src/agent/tinyagents/observability_tests.rsindex cf1b4a697f..b0f7d742a7 100644--- a/crates/openhuman-core/src/agent/tinyagents/observability_tests.rs+++ b/crates/openhuman-core/src/agent/tinyagents/observability_tests.rs@@ -54,11 +54,13 @@ async fn bridge_forwards_tool_and_cost_progress() {model: "mock-model".to_string(),});sink.emit(AgentEvent::ToolStarted {+ parent_call_id: None,call_id: "c1".into(),tool_name: "echo".to_string(),input: None,});sink.emit(AgentEvent::ToolCompleted {+ parent_call_id: None,call_id: "c1".into(),tool_name: "echo".to_string(),started_at_ms: None,@@ -217,11 +219,13 @@ async fn tool_completed_projects_output_arguments_and_elapsed() {sink.subscribe(bridge.clone());sink.emit(AgentEvent::ToolStarted {+ parent_call_id: None,call_id: "t1".into(),tool_name: "echo".to_string(),input: None,});sink.emit(AgentEvent::ToolCompleted {+ parent_call_id: None,call_id: "t1".into(),tool_name: "echo".to_string(),started_at_ms: None,@@ -406,11 +410,13 @@ async fn tool_call_events_use_the_tool_s_own_display_label_and_detail() {model: "mock-model".to_string(),});sink.emit(AgentEvent::ToolStarted {+ parent_call_id: None,call_id: "c1".into(),tool_name: "fake_send_email".to_string(),input: None,});sink.emit(AgentEvent::ToolCompleted {+ parent_call_id: None,call_id: "c1".into(),tool_name: "fake_send_email".to_string(),started_at_ms: None,