pub struct PaginationIntelligence { /* private fields */ }Expand description
Pagination intelligence engine
Implementations§
Source§impl PaginationIntelligence
impl PaginationIntelligence
Sourcepub fn new(config: BehaviorModelConfig) -> PaginationIntelligence
pub fn new(config: BehaviorModelConfig) -> PaginationIntelligence
Create new pagination intelligence
Sourcepub fn learn_from_example(&mut self, example: PaginatedResponse)
pub fn learn_from_example(&mut self, example: PaginatedResponse)
Learn from pagination example
Sourcepub async fn generate_pagination_metadata(
&self,
request: &PaginationRequest,
context: &StatefulAiContext,
) -> Result<PaginationMetadata, Error>
pub async fn generate_pagination_metadata( &self, request: &PaginationRequest, context: &StatefulAiContext, ) -> Result<PaginationMetadata, Error>
Generate pagination metadata for a request
Creates realistic pagination metadata based on the request context, learned patterns, and session state.
Sourcepub fn infer_page_size(
&self,
request: &PaginationRequest,
examples: &[PaginatedResponse],
) -> usize
pub fn infer_page_size( &self, request: &PaginationRequest, examples: &[PaginatedResponse], ) -> usize
Infer page size from request and examples
Sourcepub async fn generate_realistic_total(
&self,
context: &StatefulAiContext,
request: &PaginationRequest,
) -> Result<usize, Error>
pub async fn generate_realistic_total( &self, context: &StatefulAiContext, request: &PaginationRequest, ) -> Result<usize, Error>
Generate realistic total count using LLM or heuristics
Trait Implementations§
Source§impl Default for PaginationIntelligence
impl Default for PaginationIntelligence
Source§fn default() -> PaginationIntelligence
fn default() -> PaginationIntelligence
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PaginationIntelligence
impl !RefUnwindSafe for PaginationIntelligence
impl Send for PaginationIntelligence
impl Sync for PaginationIntelligence
impl Unpin for PaginationIntelligence
impl UnsafeUnpin for PaginationIntelligence
impl !UnwindSafe for PaginationIntelligence
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