Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/apps/desktop/src/api/agentic_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ pub struct StartDialogTurnRequest {
#[serde(default)]
pub trigger_source: Option<DialogTriggerSourceDto>,
#[serde(default)]
pub user_message_metadata: Option<serde_json::Value>,
#[serde(default)]
pub persist_agent_type: Option<bool>,
#[serde(default)]
pub image_contexts: Option<Vec<ImageContextData>>,
Expand Down Expand Up @@ -495,6 +497,7 @@ pub async fn start_dialog_turn(
workspace_path,
turn_id,
trigger_source,
user_message_metadata,
persist_agent_type,
image_contexts,
} = request;
Expand All @@ -516,7 +519,7 @@ pub async fn start_dialog_turn(
};

let outcome = scheduler
.submit(
.submit_with_metadata(
session_id,
user_input,
original_user_input,
Expand All @@ -527,6 +530,7 @@ pub async fn start_dialog_turn(
policy,
None,
resolved_images,
user_message_metadata,
)
.await
.map_err(|e| format!("Failed to start dialog turn: {}", e))?;
Expand Down
5 changes: 4 additions & 1 deletion src/apps/desktop/src/api/product_app_runtime_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2302,7 +2302,10 @@ mod tests {
name: "Sample Agent".to_string(),
description: "Sample private agent".to_string(),
package_source: ComponentPackageSource::AppPrivate,
owner_app: None,
owner_app: Some(ComponentOwnerApp {
app_id: "sample-app".to_string(),
app_version: "1.0.0".to_string(),
}),
capabilities: vec![CapabilityRef {
id: "agent.run".to_string(),
title: "Run agent".to_string(),
Expand Down
Loading
Loading