T24f Agent: control and cost
HumanInputRequest asks a question with answers to pick and a line to write one; CostBreakdown totals a session and splits it by part. InterruptButton, TokenUsageChart, TraceViewer and EvalResultTable point to chat::stop_button, a stacked BarChart, TimelineProfiler and DataTable. UsageBar shows amounts as its owner writes them. MemoryPanel and HumanInputRequest share agent::line::send_line; the chapter's bool callbacks take forms::OnFlag. DataTable scrolls columns wider than its box sideways, pinned or not, and leaves a plain wheel to the page; sortable headers are Tab stops. TimelineProfiler fits its ruler to its lane, its spans are Tab stops, and a picked span takes accent.
This commit is contained in:
20 files changed
+934
-180
No files matched your search
@@ -1,4 +1,5 @@
|
||||
mod changes;
|
||||
mod control;
|
||||
mod environment;
|
||||
mod previews;
|
||||
mod progress;
|
||||
@@ -44,6 +45,13 @@ const SCRIPT: &[Step] = &[
|
||||
Step::Click("agent-pointer-next"),
|
||||
Step::Wait(400),
|
||||
Step::Shot("pointer"),
|
||||
Step::Click("agent-stop"),
|
||||
Step::Wait(300),
|
||||
Step::Shot("interrupted"),
|
||||
Step::DownAt("agent-ask", 57.0, 79.0),
|
||||
Step::UpAt("agent-ask", 57.0, 79.0),
|
||||
Step::Wait(300),
|
||||
Step::Shot("answered"),
|
||||
];
|
||||
|
||||
fn render(window: &mut Window, cx: &mut App) -> AnyElement {
|
||||
@@ -58,5 +66,8 @@ fn render(window: &mut Window, cx: &mut App) -> AnyElement {
|
||||
.child(environment::sandbox_section(window, cx))
|
||||
.child(environment::connectors_section(window, cx))
|
||||
.child(environment::memory_section(window, cx))
|
||||
.child(control::interrupt_section(window, cx))
|
||||
.child(control::cost_section(window, cx))
|
||||
.child(control::trace_section(window, cx))
|
||||
.into_any_element()
|
||||
}
|
||||
Reference in new issue
Block a user