Skip to main content

vtcode_exec_events/
error_item.rs

1//! Error item payload carried by [`crate::ThreadItemDetails::Error`].
2//!
3//! Split out of `lib.rs` so the authoritative `ThreadEvent` enum and its
4//! wrapper stay focused; re-exported from the crate root so the public path
5//! `vtcode_exec_events::ErrorItem` is unchanged.
6
7use serde::{Deserialize, Serialize};
8
9#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
10#[cfg_attr(feature = "schema-export", derive(schemars::JsonSchema))]
11pub struct ErrorItem {
12    /// Error message displayed to the user or logs.
13    pub message: String,
14}