pub enum MapReduceChainError {
FormatAndExecuteError(FormatAndExecuteError),
TokenizeError(PromptTokensError),
InputEmpty,
StringTemplate(StringTemplateError),
}
Expand description
The MapReduceChainError
enum represents errors that can occur when executing a map-reduce chain.
Variants§
FormatAndExecuteError(FormatAndExecuteError)
An error relating to the operation of the Executor.
TokenizeError(PromptTokensError)
An error relating to tokenizing the inputs.
InputEmpty
StringTemplate(StringTemplateError)
Trait Implementations§
Source§impl Debug for MapReduceChainError
impl Debug for MapReduceChainError
Source§impl Display for MapReduceChainError
impl Display for MapReduceChainError
Source§impl Error for MapReduceChainError
impl Error for MapReduceChainError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 From<FormatAndExecuteError> for MapReduceChainError
impl From<FormatAndExecuteError> for MapReduceChainError
Source§fn from(source: FormatAndExecuteError) -> Self
fn from(source: FormatAndExecuteError) -> Self
Converts to this type from the input type.
Source§impl From<MapReduceChainError> for TextSummarizerError
impl From<MapReduceChainError> for TextSummarizerError
Source§fn from(source: MapReduceChainError) -> Self
fn from(source: MapReduceChainError) -> Self
Converts to this type from the input type.
Source§impl From<PromptTokensError> for MapReduceChainError
impl From<PromptTokensError> for MapReduceChainError
Source§fn from(source: PromptTokensError) -> Self
fn from(source: PromptTokensError) -> Self
Converts to this type from the input type.
Source§impl From<StringTemplateError> for MapReduceChainError
impl From<StringTemplateError> for MapReduceChainError
Source§fn from(source: StringTemplateError) -> Self
fn from(source: StringTemplateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MapReduceChainError
impl !RefUnwindSafe for MapReduceChainError
impl Send for MapReduceChainError
impl Sync for MapReduceChainError
impl Unpin for MapReduceChainError
impl !UnwindSafe for MapReduceChainError
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