Skip to content

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

feat(agent): add native staged parts to agent turn request

Steven Enamakel214f170d05aa
diff --git a/crates/openhuman-core/src/agent/turn_host.rs b/crates/openhuman-core/src/agent/turn_host.rs
index 7677dd2e28..d2c8b4ec64 100644
--- a/crates/openhuman-core/src/agent/turn_host.rs
+++ b/crates/openhuman-core/src/agent/turn_host.rs
@@ -62,6 +62,7 @@ pub(crate) struct AgentTurnRequest {
/// Trusted typed message assembled after validating attachment refs at the
/// owning persistence boundary. `None` retains the normal text conversion.
pub(crate) message_input: Option<tinyinference_llm::message::Message>,
+ pub(crate) native_staged_parts: Vec<tinychannels_bus::ContentPart>,
pub(crate) thread_id: Option<String>,
pub(crate) origin: AgentTurnOrigin,
pub(crate) approval: ApprovalTurnContext,
@@ -129,10 +130,12 @@ impl AgentTurnHost {
let scoped_origin = origin.clone();
let message = request.message;
let input = request.message_input;
+ let native_staged_parts = request.native_staged_parts;
let approval = request.approval;
let turn = async move {
match input {
Some(input) => {
+ session.set_native_staged_parts(native_staged_parts);
session
.run_single_with_approval_and_message(
&message,