pub enum ContextOrigin {
Tool,
Mcp,
Other,
}Expand description
Where a stretch of a session’s context came from.
Variants§
Tool
A built-in tool of the harness (Bash, Read, exec_command, …).
Mcp
An MCP server; name is the server, not the tool.
Other
Everything that is not a tool result: the system prompt, the user’s own messages, a compaction summary.
Trait Implementations§
Source§impl Clone for ContextOrigin
impl Clone for ContextOrigin
Source§fn clone(&self) -> ContextOrigin
fn clone(&self) -> ContextOrigin
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 ContextOrigin
Source§impl Debug for ContextOrigin
impl Debug for ContextOrigin
Source§impl Default for ContextOrigin
impl Default for ContextOrigin
Source§fn default() -> ContextOrigin
fn default() -> ContextOrigin
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContextOrigin
impl<'de> Deserialize<'de> for ContextOrigin
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 ContextOrigin
Source§impl Hash for ContextOrigin
impl Hash for ContextOrigin
Source§impl Ord for ContextOrigin
impl Ord for ContextOrigin
Source§fn cmp(&self, other: &ContextOrigin) -> Ordering
fn cmp(&self, other: &ContextOrigin) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ContextOrigin
impl PartialEq for ContextOrigin
Source§impl PartialOrd for ContextOrigin
impl PartialOrd for ContextOrigin
Source§impl Serialize for ContextOrigin
impl Serialize for ContextOrigin
impl StructuralPartialEq for ContextOrigin
Auto Trait Implementations§
impl Freeze for ContextOrigin
impl RefUnwindSafe for ContextOrigin
impl Send for ContextOrigin
impl Sync for ContextOrigin
impl Unpin for ContextOrigin
impl UnsafeUnpin for ContextOrigin
impl UnwindSafe for ContextOrigin
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