pub struct DiagnosticEntry {
pub agent_id: Option<String>,
pub details: McpDiagnosticDetails,
pub level: DiagnosticSeverity,
pub message: String,
pub original_bytes: Option<i64>,
pub source: DiagnosticEntrySource,
pub timestamp: String,
pub truncated: Option<bool>,
}Expand description
One retained session-scoped diagnostic record. Potentially content-bearing diagnostic data is opt-in and must not be exported automatically as telemetry.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§agent_id: Option<String>Agent identifier for a subagent host. Omitted for the root agent.
details: McpDiagnosticDetailsTyped MCP diagnostic detail.
level: DiagnosticSeveritySeverity of this emitted diagnostic record.
message: StringHuman-readable diagnostic summary.
original_bytes: Option<i64>Original byte count when a known-size message or data value was truncated.
source: DiagnosticEntrySourceDiagnostic source identifying the typed details payload.
timestamp: StringUTC RFC 3339 timestamp captured at the diagnostic source.
truncated: Option<bool>Whether message or data was truncated to the record-size bound.
Trait Implementations§
Source§impl Clone for DiagnosticEntry
impl Clone for DiagnosticEntry
Source§impl Debug for DiagnosticEntry
impl Debug for DiagnosticEntry
Source§impl Default for DiagnosticEntry
impl Default for DiagnosticEntry
Source§impl<'de> Deserialize<'de> for DiagnosticEntry
impl<'de> Deserialize<'de> for DiagnosticEntry
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
Auto Trait Implementations§
impl Freeze for DiagnosticEntry
impl RefUnwindSafe for DiagnosticEntry
impl Send for DiagnosticEntry
impl Sync for DiagnosticEntry
impl Unpin for DiagnosticEntry
impl UnsafeUnpin for DiagnosticEntry
impl UnwindSafe for DiagnosticEntry
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