pub struct ContextPolicy { /* private fields */ }Expand description
A context policy that filters/transforms conversation history.
Implementations§
Trait Implementations§
Source§impl Add<ContextPolicy> for ContextPolicyChain
impl Add<ContextPolicy> for ContextPolicyChain
Source§type Output = ContextPolicyChain
type Output = ContextPolicyChain
The resulting type after applying the
+ operator.Source§impl Add for ContextPolicy
Compose two context policies additively with +.
The combined policy applies both filters and merges (deduplicates) results.
impl Add for ContextPolicy
Compose two context policies additively with +.
The combined policy applies both filters and merges (deduplicates) results.
Source§type Output = ContextPolicyChain
type Output = ContextPolicyChain
The resulting type after applying the
+ operator.Source§impl Clone for ContextPolicy
impl Clone for ContextPolicy
Source§fn clone(&self) -> ContextPolicy
fn clone(&self) -> ContextPolicy
Returns a duplicate of the value. Read more
1.0.0 · 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 ContextPolicy
impl Debug for ContextPolicy
Source§impl From<ContextPolicy> for ContextPolicyChain
A single policy is a one-element chain, so .context(C::window(10)) works
without an explicit +.
impl From<ContextPolicy> for ContextPolicyChain
A single policy is a one-element chain, so .context(C::window(10)) works
without an explicit +.
Source§fn from(policy: ContextPolicy) -> Self
fn from(policy: ContextPolicy) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ContextPolicy
impl !RefUnwindSafe for ContextPolicy
impl Send for ContextPolicy
impl Sync for ContextPolicy
impl Unpin for ContextPolicy
impl !UnwindSafe for ContextPolicy
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