pub struct ReplayService { /* private fields */ }Implementations§
Source§impl ReplayService
impl ReplayService
pub const fn new( ai: DynAiProvider, created_by: UserId, run_context: ContextId, ) -> Self
Sourcepub async fn replay(
&self,
prompt: &CanonicalPrompt,
repair_hint: &str,
) -> Result<AiResponse>
pub async fn replay( &self, prompt: &CanonicalPrompt, repair_hint: &str, ) -> Result<AiResponse>
Re-executes a canonical prompt with the repair hint injected ahead of the final user turn, so the model sees the corrective instruction in the position a system hint would occupy at serve time.
Trait Implementations§
Source§impl Clone for ReplayService
impl Clone for ReplayService
Source§fn clone(&self) -> ReplayService
fn clone(&self) -> ReplayService
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for ReplayService
impl !UnwindSafe for ReplayService
impl Freeze for ReplayService
impl Send for ReplayService
impl Sync for ReplayService
impl Unpin for ReplayService
impl UnsafeUnpin for ReplayService
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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