pub enum CascadeStep {
Inference(InferenceStep),
Guidance(GuidanceStep),
}Variants§
Inference(InferenceStep)
Guidance(GuidanceStep)
Implementations§
Source§impl CascadeStep
impl CascadeStep
pub fn new_inference_step(step_config: StepConfig, step_counter: usize) -> Self
pub fn new_guidance_step<S: Into<String>>( step_config: StepConfig, step_counter: usize, llm_content: S, ) -> Self
pub fn display_step_prefix(&self) -> Option<String>
pub async fn run_step( &mut self, generation_prefix: Option<&str>, base_req: &mut CompletionRequest, ) -> Result<()>
pub async fn set_cache_up_to_step( &mut self, generation_prefix: Option<&str>, base_req: &mut CompletionRequest, ) -> Result<()>
pub fn set_dynamic_suffix<S: Into<String>>(&mut self, dynamic_suffix: S)
pub fn display_step_outcome(&self) -> Result<String>
pub fn primitive_result(&self) -> Option<String>
Trait Implementations§
Source§impl Clone for CascadeStep
impl Clone for CascadeStep
Source§fn clone(&self) -> CascadeStep
fn clone(&self) -> CascadeStep
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 moreAuto Trait Implementations§
impl !Freeze for CascadeStep
impl !RefUnwindSafe for CascadeStep
impl Send for CascadeStep
impl !Sync for CascadeStep
impl Unpin for CascadeStep
impl UnwindSafe for CascadeStep
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,
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