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
36 changes: 34 additions & 2 deletions crates/app/src/ui/batch_workflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ impl AutomationUi {
for target in &plan.targets {
ui.label(format!(
"{:?} · {} · {}",
target.status, target.target.id, target.reason
target.status,
target.target.describe(),
target.reason
));
}
});
Expand Down Expand Up @@ -389,7 +391,37 @@ impl AutomationUi {
result.tool_id, result.before_revision.0, result.after_revision.0
));
for target in &result.targets {
ui.label(format!("{:?} · {}", target.outcome, target.message));
// The target identity has to appear here: a property tool
// expands one plot object into one result per series, and
// without the component every one of those rows reads the same.
ui.label(format!(
"{:?} · {} · {}",
target.outcome,
target.target.describe(),
target.message
));
}
// The per-target rows report what happened, never what was read: a
// tool's readings live in the result value. Without this an inspect
// call reports success and shows no numbers at all.
if !result.value.is_null() {
match serde_json::to_string_pretty(&result.value) {
Ok(text) => {
ui.label("Result value (JSON)");
egui::ScrollArea::vertical()
.max_height(160.0)
.id_salt("automation_result_value")
.show(ui, |ui| {
ui.monospace(text);
});
}
Err(error) => {
ui.colored_label(
ui.visuals().error_fg_color,
format!("The result value could not be shown: {error}"),
);
}
}
}
}
ui.small(format!(
Expand Down
3 changes: 3 additions & 0 deletions crates/core/src/automation/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@
//! agents. The public boundary is deliberately semantic: callers can inspect,
//! select and invoke registered tools, but cannot construct document actions.

mod properties;
mod registry;
mod resources;
mod tasks;
mod tool_executors;
mod tools;
mod types;
mod workflow;

pub use properties::{TOOL_INSPECT, TOOL_RESET, TOOL_SET};
pub use registry::ToolRegistry;
pub use resources::*;
pub use tasks::*;
Expand Down
Loading
Loading