pub struct LogRequest {
pub ephemeral: Option<bool>,
pub level: Option<SessionLogLevel>,
pub message: String,
pub tip: Option<String>,
pub type: Option<String>,
pub url: Option<String>,
}Expand description
Message text, optional severity level, persistence flag, optional follow-up URL, and optional tip.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§ephemeral: Option<bool>When true, the message is transient and not persisted to the session event log on disk
level: Option<SessionLogLevel>Log severity level. Determines how the message is displayed in the timeline. Defaults to “info”.
message: StringHuman-readable message
tip: Option<String>Optional actionable tip displayed alongside the message. Only honored on level: "info".
type: Option<String>Domain category for this log entry (e.g., “mcp”, “subscription”, “policy”, “model”). Maps to infoType/warningType/errorType on the emitted event. Defaults to “notification”.
url: Option<String>Optional URL the user can open in their browser for more details
Trait Implementations§
Source§impl Clone for LogRequest
impl Clone for LogRequest
Source§fn clone(&self) -> LogRequest
fn clone(&self) -> LogRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more