Enum llm_chain::chains::map_reduce::MapReduceChainError
source · pub enum MapReduceChainError<Err: ExecutorError> {
ExecutorError(Err),
TokenizeError(PromptTokensError),
InputEmpty,
}
Expand description
The MapReduceChainError
enum represents errors that can occur when executing a map-reduce chain.
Variants§
ExecutorError(Err)
An error relating to the operation of the Executor.
TokenizeError(PromptTokensError)
An error relating to tokenizing the inputs.
InputEmpty
Trait Implementations§
source§impl<Err: Debug + ExecutorError> Debug for MapReduceChainError<Err>
impl<Err: Debug + ExecutorError> Debug for MapReduceChainError<Err>
source§impl<Err> Display for MapReduceChainError<Err>where
Err: Display + ExecutorError,
impl<Err> Display for MapReduceChainError<Err>where Err: Display + ExecutorError,
source§impl<Err> Error for MapReduceChainError<Err>where
Err: Error + 'static + ExecutorError,
Self: Debug + Display,
impl<Err> Error for MapReduceChainError<Err>where Err: Error + 'static + ExecutorError, Self: Debug + Display,
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<Err: ExecutorError> From<Err> for MapReduceChainError<Err>
impl<Err: ExecutorError> From<Err> for MapReduceChainError<Err>
source§impl<E: ExecutorError> From<MapReduceChainError<E>> for TextSummarizerError<E>
impl<E: ExecutorError> From<MapReduceChainError<E>> for TextSummarizerError<E>
source§fn from(source: MapReduceChainError<E>) -> Self
fn from(source: MapReduceChainError<E>) -> Self
Converts to this type from the input type.
source§impl<Err: ExecutorError> From<PromptTokensError> for MapReduceChainError<Err>
impl<Err: ExecutorError> From<PromptTokensError> for MapReduceChainError<Err>
source§fn from(source: PromptTokensError) -> Self
fn from(source: PromptTokensError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<Err> RefUnwindSafe for MapReduceChainError<Err>where Err: RefUnwindSafe,
impl<Err> Send for MapReduceChainError<Err>where Err: Send,
impl<Err> Sync for MapReduceChainError<Err>where Err: Sync,
impl<Err> Unpin for MapReduceChainError<Err>where Err: Unpin,
impl<Err> UnwindSafe for MapReduceChainError<Err>where Err: UnwindSafe,
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request