pub struct ClaudeCliClassifier { /* private fields */ }Implementations§
Source§impl ClaudeCliClassifier
impl ClaudeCliClassifier
Sourcepub fn from_env() -> Option<Self>
pub fn from_env() -> Option<Self>
Build from environment. Returns None unless a claude binary is on
PATH (probed with claude --version) — the caller then falls through to
the next backend. Model comes from TJ_AGENT_SDK_MODEL, else Haiku.
Sourcepub fn with_runner(
model: impl Into<String>,
runner: Box<dyn CommandRunner>,
) -> Self
pub fn with_runner( model: impl Into<String>, runner: Box<dyn CommandRunner>, ) -> Self
Test/dev constructor: inject a fake runner and an explicit model so the
parse path can be exercised without a live claude login.
Trait Implementations§
Source§impl Classifier for ClaudeCliClassifier
impl Classifier for ClaudeCliClassifier
fn classify(&self, input: &ClassifyInput) -> Result<ClassifyOutput>
Auto Trait Implementations§
impl !RefUnwindSafe for ClaudeCliClassifier
impl !UnwindSafe for ClaudeCliClassifier
impl Freeze for ClaudeCliClassifier
impl Send for ClaudeCliClassifier
impl Sync for ClaudeCliClassifier
impl Unpin for ClaudeCliClassifier
impl UnsafeUnpin for ClaudeCliClassifier
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more