Skip to content

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

fix(goals): include goal value in set-goal response

Steven Enamakelf235534de0f0
diff --git a/crates/openhuman-core/src/agent/goals/tools.rs b/crates/openhuman-core/src/agent/goals/tools.rs
index ec54f8b165..2a68ce65a3 100644
--- a/crates/openhuman-core/src/agent/goals/tools.rs
+++ b/crates/openhuman-core/src/agent/goals/tools.rs
@@ -190,7 +190,7 @@ impl Tool for GoalSetTool {
thread_id: goal.thread_id.clone(),
goal_id: goal.goal_id.clone(),
status: goal.status.as_str().to_string(),
- goal: None,
+ goal: Some(super::goal_to_value(&goal)),
},
);
Ok(ToolResult::success(goal_payload(Some(&goal), "Goal set.")))
@@ -254,7 +254,7 @@ impl Tool for GoalCompleteTool {
thread_id: goal.thread_id.clone(),
goal_id: goal.goal_id.clone(),
status: goal.status.as_str().to_string(),
- goal: None,
+ goal: Some(super::goal_to_value(&goal)),
},
);
Ok(ToolResult::success(goal_payload(