pub struct Advice {
pub agent_id: String,
pub agent_name: String,
pub rule: AdviceRule,
pub subject: String,
pub pid: Option<u32>,
pub headline: String,
pub action: String,
pub cost_usd: f64,
pub tokens: u64,
pub calls: u64,
pub rss_bytes: u64,
}Expand description
One sentence of advice about one agent, with the numbers that back it and the thing you could do. Nothing is done for you: agent-top only points.
Fields§
§agent_id: String§agent_name: String§rule: AdviceRule§subject: StringThe tool, or the MCP server, the advice is about.
pid: Option<u32>The server’s process, when the advice is about one.
headline: StringWhat was seen, with its numbers.
action: StringWhat you might do about it.
cost_usd: f64The evidence as numbers, for scripts: zero where a rule has none.
tokens: u64§calls: u64§rss_bytes: u64Trait Implementations§
Source§impl<'de> Deserialize<'de> for Advice
impl<'de> Deserialize<'de> for Advice
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Advice
Auto Trait Implementations§
impl Freeze for Advice
impl RefUnwindSafe for Advice
impl Send for Advice
impl Sync for Advice
impl Unpin for Advice
impl UnsafeUnpin for Advice
impl UnwindSafe for Advice
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