pub enum FormatAndExecuteError {
Format(StringTemplateError),
Execute(ExecutorError),
}
Expand description
An error that occurs when formatting and prompt template for an LLM
Variants§
Format(StringTemplateError)
Execute(ExecutorError)
Trait Implementations§
Source§impl Debug for FormatAndExecuteError
impl Debug for FormatAndExecuteError
Source§impl Display for FormatAndExecuteError
impl Display for FormatAndExecuteError
Source§impl Error for FormatAndExecuteError
impl Error for FormatAndExecuteError
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<ExecutorError> for FormatAndExecuteError
impl From<ExecutorError> for FormatAndExecuteError
Source§fn from(source: ExecutorError) -> Self
fn from(source: ExecutorError) -> Self
Converts to this type from the input type.
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<FormatAndExecuteError> for SequentialChainError
impl From<FormatAndExecuteError> for SequentialChainError
Source§fn from(source: FormatAndExecuteError) -> Self
fn from(source: FormatAndExecuteError) -> Self
Converts to this type from the input type.
Source§impl From<StringTemplateError> for FormatAndExecuteError
impl From<StringTemplateError> for FormatAndExecuteError
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 FormatAndExecuteError
impl !RefUnwindSafe for FormatAndExecuteError
impl Send for FormatAndExecuteError
impl Sync for FormatAndExecuteError
impl Unpin for FormatAndExecuteError
impl !UnwindSafe for FormatAndExecuteError
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