#[non_exhaustive]pub struct SubagentChange {
pub index: usize,
pub run_id: SubagentRunId,
pub kind: SubagentChangeKind,
}Expand description
Which subagent changed, and how.
#[non_exhaustive]: read the fields, match with .., and build one, to
compare with what Applier::apply returned, with
SubagentChange::new. A struct literal does not compile outside this
crate:
ⓘ
use ag_ui::client::apply::{SubagentChange, SubagentChangeKind};
let change = SubagentChange { index: 0, run_id: "s-1".into(), kind: SubagentChangeKind::Finished };Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.index: usizeIndex into Applier::subagents.
run_id: SubagentRunIdThe invocation’s id.
kind: SubagentChangeKindWhat happened to it.
Implementations§
Source§impl SubagentChange
impl SubagentChange
Sourcepub fn new(
index: usize,
run_id: impl Into<SubagentRunId>,
kind: SubagentChangeKind,
) -> Self
pub fn new( index: usize, run_id: impl Into<SubagentRunId>, kind: SubagentChangeKind, ) -> Self
A change of kind to the invocation run_id, at index of
Applier::subagents.
Trait Implementations§
Source§impl Clone for SubagentChange
impl Clone for SubagentChange
Source§impl Debug for SubagentChange
impl Debug for SubagentChange
Source§impl PartialEq for SubagentChange
impl PartialEq for SubagentChange
impl StructuralPartialEq for SubagentChange
Auto Trait Implementations§
impl Freeze for SubagentChange
impl RefUnwindSafe for SubagentChange
impl Send for SubagentChange
impl Sync for SubagentChange
impl Unpin for SubagentChange
impl UnsafeUnpin for SubagentChange
impl UnwindSafe for SubagentChange
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