T24b: Agent, progress
- AgentStepList: an agent's steps down a data_display::Timeline rail, marked by chat::step_mark, with detail and time - AgentPlan: items waiting, at work or done, with a count; done items go quiet and struck through - chat::step_mark reads motion::changes: a check or cross that arrives pops in, still on first paint - AgentStatus: a pill for planning, working, waiting, done or failed - AgentProgress: the step at work, done of total, the time so far and a bar split by step; progress past its total fails loud - SubAgentTree is lists::Tree with each agent's state as its note - gallery: a plan the button advances, steps, statuses and a tree
This commit is contained in:
8 files changed
+551
-41
No files matched your search
@@ -1,3 +1,4 @@
|
||||
mod progress;
|
||||
mod tools;
|
||||
|
||||
use gpui::{AnyElement, App, IntoElement, ParentElement, Window, div};
|
||||
@@ -9,7 +10,7 @@ pub const PAGE: Page = Page {
|
||||
number: 24,
|
||||
slug: "agent",
|
||||
title: "Agent",
|
||||
summary: "An assistant at work: the tools it calls and what it asks before it acts.",
|
||||
summary: "An assistant at work: the tools it calls, what it asks before it acts, and how far it has come.",
|
||||
render,
|
||||
script: SCRIPT,
|
||||
};
|
||||
@@ -27,11 +28,16 @@ const SCRIPT: &[Step] = &[
|
||||
Step::DownAt("agent-call", 60.0, 18.0),
|
||||
Step::UpAt("agent-call", 60.0, 18.0),
|
||||
Step::Wait(200),
|
||||
Step::Click("agent-advance"),
|
||||
Step::Wait(300),
|
||||
Step::Shot("plan"),
|
||||
];
|
||||
|
||||
fn render(window: &mut Window, cx: &mut App) -> AnyElement {
|
||||
div()
|
||||
.child(tools::calls(window, cx))
|
||||
.child(tools::approval(window, cx))
|
||||
.child(progress::steps(window, cx))
|
||||
.child(progress::agents(window, cx))
|
||||
.into_any_element()
|
||||
}
|
||||
Reference in new issue
Block a user