pub enum ContextItemKind {
Harness,
ProjectInstruction,
PinnedFile,
Skill,
Transcript,
Summary,
ToolArchive,
}Expand description
Kind of context a ContextItem represents.
Drives selection policy and grouping. Kinds are stable labels an adding a variant is a backwards-compatible ledger extension.
Variants§
Harness
Always-loaded harness prompt fragments, environment metadata, and tool schemas. System-owned and not directly editable by context controls.
ProjectInstruction
Read-only AGENTS.md project instructions (root or nested scope).
PinnedFile
Task-local pinned file, file range, tool result, or note.
Skill
Activated Agent Skill instructions.
Transcript
Recent transcript entries (user, assistant, reasoning, settled tool).
Summary
Compaction summary standing in for older transcript entries.
ToolArchive
Recoverable archived tool output or transcript payload.
Implementations§
Trait Implementations§
Source§impl Clone for ContextItemKind
impl Clone for ContextItemKind
Source§fn clone(&self) -> ContextItemKind
fn clone(&self) -> ContextItemKind
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 moreSource§impl Debug for ContextItemKind
impl Debug for ContextItemKind
Source§impl<'de> Deserialize<'de> for ContextItemKind
impl<'de> Deserialize<'de> for ContextItemKind
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 ContextItemKind
Source§impl Hash for ContextItemKind
impl Hash for ContextItemKind
Source§impl PartialEq for ContextItemKind
impl PartialEq for ContextItemKind
Source§impl Serialize for ContextItemKind
impl Serialize for ContextItemKind
impl StructuralPartialEq for ContextItemKind
Auto Trait Implementations§
impl Freeze for ContextItemKind
impl RefUnwindSafe for ContextItemKind
impl Send for ContextItemKind
impl Sync for ContextItemKind
impl Unpin for ContextItemKind
impl UnsafeUnpin for ContextItemKind
impl UnwindSafe for ContextItemKind
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