pub struct ExtractiveBackend { /* private fields */ }Expand description
The public extractive backend. Stateless aside from the name field
(configurable via the registry so a project can have multiple
extractive entries — e.g. one named “default” and one named “fast”).
Implementations§
Trait Implementations§
Source§impl Clone for ExtractiveBackend
impl Clone for ExtractiveBackend
Source§fn clone(&self) -> ExtractiveBackend
fn clone(&self) -> ExtractiveBackend
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 ExtractiveBackend
impl Debug for ExtractiveBackend
Source§impl SummarizerBackend for ExtractiveBackend
impl SummarizerBackend for ExtractiveBackend
fn compact<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
content: &'life1 str,
opts: &'life2 CompactOpts,
) -> Pin<Box<dyn Future<Output = Result<String, BackendError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Source§fn model_id(&self) -> &str
fn model_id(&self) -> &str
Resolved model identifier for
params_hash. The default "" is
intended only for the extractive backend (which has no model). All
cloud / network-backed backends MUST override this with their
resolved model id so the cache key partitions across model versions.Source§fn uses_model_prompt(&self) -> bool
fn uses_model_prompt(&self) -> bool
Whether this backend feeds
content into a model prompt (and is thus an
injection target needing HIGH internal hardening). Prompt-free backends
(e.g. extractive TextRank) return false.Auto Trait Implementations§
impl Freeze for ExtractiveBackend
impl RefUnwindSafe for ExtractiveBackend
impl Send for ExtractiveBackend
impl Sync for ExtractiveBackend
impl Unpin for ExtractiveBackend
impl UnsafeUnpin for ExtractiveBackend
impl UnwindSafe for ExtractiveBackend
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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