pub struct InformationalMessage {
pub content: String,
pub level: String,
pub tool_use_id: Option<String>,
pub prevent_continuation: Option<bool>,
pub tag: Option<String>,
pub prompt_submit_outcome: Option<PromptSubmitOutcome>,
pub model_restriction: Option<ModelRestriction>,
pub hook_no_verdict: Option<HookNoVerdict>,
pub uuid: Option<String>,
pub session_id: Option<String>,
}Fields§
§content: String§level: String§tool_use_id: Option<String>§prevent_continuation: Option<bool>§tag: Option<String>Opaque feature tag on a line a host may treat specially; absent on ordinary lines. Hosts ignore values they do not know (CLI 2.1.288+).
prompt_submit_outcome: Option<PromptSubmitOutcome>Present on the line that ends a submitted prompt before a model call:
how the prompt ended, so a host can write its own message or count
endings without matching content. A follow-up a hook blocks while a
turn runs carries it too, so read it as the end of a turn only when
the next result has num_turns 0 (CLI 2.1.300+).
model_restriction: Option<ModelRestriction>Present on the warning that says a requested model was refused and
the session uses another, so a host can word the notice itself
instead of reading content (CLI 2.1.317+).
hook_no_verdict: Option<HookNoVerdict>Present on the warning, tagged hook_no_verdict, that a PreToolUse
hook gave no verdict on a call and that its failure did not refuse
the call, so a host can word the notice itself instead of reading
content. Sent once per hook per session, for the first such call.
Marked @internal upstream (CLI 2.1.325+).
uuid: Option<String>§session_id: Option<String>