pub struct Dashboard {
pub rho: f64,
pub token_budget: u32,
pub goal_progress: String,
pub error_count: u32,
pub depth: u32,
pub interrupt_requested: bool,
pub plan: Vec<String>,
pub event_surface: EventSurface,
pub knowledge_surface: KnowledgeSurface,
pub scratchpad: String,
}Expand description
Legacy agent-state surface, superseded by crate::context::task_state::TaskState.
TaskState is now the single source of truth for goal/plan/progress/scratchpad
and is rendered into the State turn. Dashboard is retained only for the
render_dashboard opt-in path (off by default) and for WorkingMemory.
Prefer TaskState for new code; the goal_progress / plan / scratchpad
fields here mirror data that TaskState owns canonically.
Fields§
§rho: f64§token_budget: u32§goal_progress: String§error_count: u32§depth: u32§interrupt_requested: bool§plan: Vec<String>§event_surface: EventSurface§knowledge_surface: KnowledgeSurface§scratchpad: StringImplementations§
Source§impl Dashboard
impl Dashboard
Sourcepub fn format_compact(&self) -> String
pub fn format_compact(&self) -> String
Compact single-block representation for embedding in system_text. Returns an empty string when all fields are at their default/empty values so the renderer can skip it entirely on fresh agents.
pub fn format_message(&self) -> Message
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dashboard
impl RefUnwindSafe for Dashboard
impl Send for Dashboard
impl Sync for Dashboard
impl Unpin for Dashboard
impl UnsafeUnpin for Dashboard
impl UnwindSafe for Dashboard
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more