pub struct SessionSummaryProvider { /* private fields */ }Expand description
Explicit optional session-summary insertion point.
Implementations§
Source§impl SessionSummaryProvider
impl SessionSummaryProvider
Sourcepub fn empty() -> Result<Self, ContextError>
pub fn empty() -> Result<Self, ContextError>
Creates an empty optional summary provider.
§Errors
Returns an error only when a static built-in identity is invalid.
Sourcepub fn new(
summary: impl Into<String>,
record_id: RecordId,
trust: TrustLevel,
) -> Result<Self, ContextError>
pub fn new( summary: impl Into<String>, record_id: RecordId, trust: TrustLevel, ) -> Result<Self, ContextError>
Creates a provider from a caller-supplied durable summary snapshot.
§Errors
Returns an error when summary content violates prompt bounds.
Trait Implementations§
Source§impl Clone for SessionSummaryProvider
impl Clone for SessionSummaryProvider
Source§fn clone(&self) -> SessionSummaryProvider
fn clone(&self) -> SessionSummaryProvider
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 ContextProvider for SessionSummaryProvider
impl ContextProvider for SessionSummaryProvider
Source§fn id(&self) -> &ContextProviderId
fn id(&self) -> &ContextProviderId
Returns stable provider identity.
Source§fn provide(&self, _request: ContextRequest) -> ContextProviderFuture<'_>
fn provide(&self, _request: ContextRequest) -> ContextProviderFuture<'_>
Produces bounded modules from one immutable request.
Auto Trait Implementations§
impl Freeze for SessionSummaryProvider
impl RefUnwindSafe for SessionSummaryProvider
impl Send for SessionSummaryProvider
impl Sync for SessionSummaryProvider
impl Unpin for SessionSummaryProvider
impl UnsafeUnpin for SessionSummaryProvider
impl UnwindSafe for SessionSummaryProvider
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