pub struct LlmClassifier { /* private fields */ }Expand description
Classifies exception batches using an LLM channel.
Sends a batch of exceptions + existing open issues to the LLM for semantic deduplication and issue content generation.
Implementations§
Source§impl LlmClassifier
impl LlmClassifier
Sourcepub fn new(channel: Arc<dyn LlmChannel>) -> Self
pub fn new(channel: Arc<dyn LlmChannel>) -> Self
Create a new LlmClassifier with the given channel.
Sourcepub async fn classify_batch(
&self,
records: &[ExceptionRecord],
existing_issues: &[ExistingIssueData],
) -> CollectorResult<Vec<ClassificationResult>>
pub async fn classify_batch( &self, records: &[ExceptionRecord], existing_issues: &[ExistingIssueData], ) -> CollectorResult<Vec<ClassificationResult>>
Classify a batch of exceptions against existing open issues.
Sends one LLM request for the entire batch (not per-record).
§Errors
Returns an error if the LLM channel fails and fallback is not possible.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LlmClassifier
impl !UnwindSafe for LlmClassifier
impl Freeze for LlmClassifier
impl Send for LlmClassifier
impl Sync for LlmClassifier
impl Unpin for LlmClassifier
impl UnsafeUnpin for LlmClassifier
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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