pub enum ContextSource {
UserPrompts,
AssistantText,
Thinking,
ToolCalls,
ToolResults,
Attachments,
}Expand description
Bucket a piece of transcript content is attributed to. The split between
AssistantText and Thinking uses crate::model::Event::thinking_chars
(a subset of content_chars); ToolCalls is the tool-use input JSON.
Variants§
UserPrompts
User-typed prompts.
AssistantText
Assistant visible text (excludes thinking and tool-call JSON).
Thinking
Extended-thinking text (measurable only; encrypted thinking is invisible).
ToolCalls
Tool-use input JSON the assistant emitted.
ToolResults
Tool/command results returned into the window (usually the #1 filler).
Attachments
Injected non-message context: deferred-tool/skill listings, MCP
instruction blocks, IDE/file context, reminders (attachment lines).
Trait Implementations§
Source§impl Clone for ContextSource
impl Clone for ContextSource
Source§fn clone(&self) -> ContextSource
fn clone(&self) -> ContextSource
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 ContextSource
Source§impl Debug for ContextSource
impl Debug for ContextSource
impl Eq for ContextSource
Source§impl PartialEq for ContextSource
impl PartialEq for ContextSource
Source§fn eq(&self, other: &ContextSource) -> bool
fn eq(&self, other: &ContextSource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ContextSource
impl Serialize for ContextSource
impl StructuralPartialEq for ContextSource
Auto Trait Implementations§
impl Freeze for ContextSource
impl RefUnwindSafe for ContextSource
impl Send for ContextSource
impl Sync for ContextSource
impl Unpin for ContextSource
impl UnsafeUnpin for ContextSource
impl UnwindSafe for ContextSource
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