pub enum ContentClass {
UserText,
AssistantText,
Thinking,
ToolCalls,
ToolResults,
FilePaths,
EventData,
}Expand description
Content classes source material may belong to. Shared vocabulary between summary provenance (spec §9.3) and the compaction disclosure policy (spec §9.4).
Variants§
UserText
AssistantText
Thinking
ToolCalls
ToolResults
FilePaths
STRUCTURED path-bearing surfaces only: the file-operations record
derived from tool calls, and — conservatively — entire tool-call
argument payloads (withheld wholesale on exclusion, because paths
inside nested/positional/unrecognized argument shapes cannot be
reliably identified). Paths mentioned inside free text belong to
their text class (UserText, AssistantText, ToolResults,
EventData); excluding those classes withholds such mentions.
EventData
Implementations§
Source§impl ContentClass
impl ContentClass
Trait Implementations§
Source§impl Clone for ContentClass
impl Clone for ContentClass
Source§fn clone(&self) -> ContentClass
fn clone(&self) -> ContentClass
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ContentClass
Source§impl Debug for ContentClass
impl Debug for ContentClass
Source§impl<'de> Deserialize<'de> for ContentClass
impl<'de> Deserialize<'de> for ContentClass
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
impl Eq for ContentClass
Source§impl Hash for ContentClass
impl Hash for ContentClass
Source§impl PartialEq for ContentClass
impl PartialEq for ContentClass
Source§impl Serialize for ContentClass
impl Serialize for ContentClass
impl StructuralPartialEq for ContentClass
Auto Trait Implementations§
impl Freeze for ContentClass
impl RefUnwindSafe for ContentClass
impl Send for ContentClass
impl Sync for ContentClass
impl Unpin for ContentClass
impl UnsafeUnpin for ContentClass
impl UnwindSafe for ContentClass
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.