pub struct SideChatSource {
pub chat: Uri,
pub turn_id: String,
pub selection: Option<SideChatSelection>,
}Expand description
Supplies source context to a new side chat without copying it into the side chat’s visible history.
Fields§
§chat: UriURI of the existing source chat.
turn_id: StringStable source-turn identifier in the source chat.
Hosts resolve this id against the source chat’s current activeTurn or its
retained turns when accepting createChat. If it names the current
active turn, the host snapshots the source chat’s retained history plus
that turn’s current user message and any partial assistant response already
available. Once that turn later becomes historical, it is still referenced
by this same identifier.
selection: Option<SideChatSelection>Optional immutable selected-text snapshot to carry into the created side chat’s origin.
When present, the host MUST snapshot and preserve this exact selection when
it accepts createChat; later source-turn deltas do not alter it.
Trait Implementations§
Source§impl Clone for SideChatSource
impl Clone for SideChatSource
Source§fn clone(&self) -> SideChatSource
fn clone(&self) -> SideChatSource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more