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 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+).
uuid: Option<String>§session_id: Option<String>Trait Implementations§
Source§impl Clone for InformationalMessage
impl Clone for InformationalMessage
Source§impl Debug for InformationalMessage
impl Debug for InformationalMessage
Source§impl<'de> Deserialize<'de> for InformationalMessage
impl<'de> Deserialize<'de> for InformationalMessage
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 InformationalMessage
impl RefUnwindSafe for InformationalMessage
impl Send for InformationalMessage
impl Sync for InformationalMessage
impl Unpin for InformationalMessage
impl UnsafeUnpin for InformationalMessage
impl UnwindSafe for InformationalMessage
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