Skip to main content

TranscriptView

Struct TranscriptView 

Source
pub struct TranscriptView { /* private fields */ }
Expand description

The transcript as a ModelProvider: wraps inner, rewrites every request’s messages through the stepped view, and refreshes the shared mirror first. A configured Summarizer upgrades the new sections’ stand-ins in a background task after the request went out — never inside it, never under the mirror’s lock, so a slow or failing worker delays nothing.

Implementations§

Source§

impl TranscriptView

Source

pub fn new( inner: Arc<dyn ModelProvider>, transcript: Arc<Mutex<Transcript>>, ) -> Self

The wrapper over inner, mirroring into transcript — the same mirror a crate::zoom::Zoom resolver reads. Build both from one mirror, or let crate::attach do it. No summarizer: new sections keep their extractive stand-ins.

Source

pub fn with_summarizer( inner: Arc<dyn ModelProvider>, transcript: Arc<Mutex<Transcript>>, summarizer: Arc<dyn Summarizer>, ) -> Self

The wrapper with a summarizer for the model fill of new sections. The fill runs in tokio tasks: calling Self::complete with a summarizer requires a running runtime.

Trait Implementations§

Source§

impl Debug for TranscriptView

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl ModelProvider for TranscriptView

Source§

fn complete<'life0, 'life1, 'async_trait>( &'life0 self, req: ModelRequest, sink: &'life1 mut dyn EventSink, ) -> Pin<Box<dyn Future<Output = Result<ModelOutput, ProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Stream deltas to sink; return the assembled final output.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.