pub struct UserMessageSource { /* private fields */ }Expand description
A Source that mirrors BriefContext::user_message into the brief.
Skipped (not failed) when no user message is present. Critical priority so
it survives any budget pruning short of BudgetUnsatisfiable. Emits a
Role::User text contribution; not redactable — the user’s literal
words should reach the model verbatim.
Implementations§
Trait Implementations§
Source§impl Clone for UserMessageSource
impl Clone for UserMessageSource
Source§fn clone(&self) -> UserMessageSource
fn clone(&self) -> UserMessageSource
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 UserMessageSource
impl Debug for UserMessageSource
Source§impl Default for UserMessageSource
impl Default for UserMessageSource
Source§impl Source for UserMessageSource
impl Source for UserMessageSource
Source§fn id(&self) -> SourceId
fn id(&self) -> SourceId
Stable identifier for this source. Receipts and message attribution
key off this value.
Source§fn contribute<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 BriefContext,
) -> Pin<Box<dyn Future<Output = Result<Vec<Contribution>, SourceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn contribute<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 BriefContext,
) -> Pin<Box<dyn Future<Output = Result<Vec<Contribution>, SourceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Produce zero or more
Contributions for this turn.Auto Trait Implementations§
impl Freeze for UserMessageSource
impl RefUnwindSafe for UserMessageSource
impl Send for UserMessageSource
impl Sync for UserMessageSource
impl Unpin for UserMessageSource
impl UnsafeUnpin for UserMessageSource
impl UnwindSafe for UserMessageSource
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