pub struct AgentState {
pub interactive_elements: Vec<ElementSummary>,
pub data_elements: Vec<ElementSummary>,
pub current_route: String,
}Expand description
Structured snapshot of the UI tree designed for LLM / AI agent consumption.
Returned by query_state and serializable as JSON.
Fields§
§interactive_elements: Vec<ElementSummary>Elements an agent can interact with (buttons, inputs, …).
data_elements: Vec<ElementSummary>Elements that display data (headings, text, grids, …).
current_route: StringThe current route known to the reactive router.
Trait Implementations§
Source§impl Clone for AgentState
impl Clone for AgentState
Source§fn clone(&self) -> AgentState
fn clone(&self) -> AgentState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AgentState
impl Debug for AgentState
Auto Trait Implementations§
impl Freeze for AgentState
impl RefUnwindSafe for AgentState
impl Send for AgentState
impl Sync for AgentState
impl Unpin for AgentState
impl UnsafeUnpin for AgentState
impl UnwindSafe for AgentState
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