pub enum Harness {
Claude,
Codex,
Gemini,
OpenCode,
Kodelet,
Aider,
Copilot,
Cursor,
Unknown,
}Expand description
Which agent harness a process or transcript belongs to.
Variants§
Implementations§
Source§impl Harness
impl Harness
pub fn label(self) -> &'static str
Sourcepub fn session_id_prefix_len(self) -> Option<usize>
pub fn session_id_prefix_len(self) -> Option<usize>
How much of a session id identifies it to agent-top trace --session,
which matches a prefix against the ids of every harness and fails when
one matches more than one session. None means the whole id is needed:
Kodelet’s begin with a date that every session started that day shares.
Trait Implementations§
impl Copy for Harness
Source§impl<'de> Deserialize<'de> for Harness
impl<'de> Deserialize<'de> for Harness
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 Harness
Source§impl Ord for Harness
impl Ord for Harness
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 PartialOrd for Harness
impl PartialOrd for Harness
impl StructuralPartialEq for Harness
Auto Trait Implementations§
impl Freeze for Harness
impl RefUnwindSafe for Harness
impl Send for Harness
impl Sync for Harness
impl Unpin for Harness
impl UnsafeUnpin for Harness
impl UnwindSafe for Harness
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