pub enum AnchorChainError {
OpenAIError(OpenAIError),
BedrockError(SdkError<InvokeModelError>),
TeraTemplateError(Error),
EmptyResponseError,
RequestError(Error),
OpenSearchError(Error),
OpenSearchInternalError(String),
ParseError(String),
InvalidInputError(String),
ModelError(String),
ReqwestError(Error),
}Expand description
Defines errors types for Anchor Chain
Variants§
OpenAIError(OpenAIError)
Occurs when failing to construct OpenAI prompts, messages or when invoking the model fails.
BedrockError(SdkError<InvokeModelError>)
Occurs when failing to construct or invoke a model in Bedrock.
TeraTemplateError(Error)
Error constructing or rendering Tera templates.
EmptyResponseError
Error when no response is returned from the LLM model.
RequestError(Error)
Generic error that occurs when serializing or deserializing a request.
OpenSearchError(Error)
Error when configuring or using OpenSearch.
OpenSearchInternalError(String)
Error that occurs when calling OpenSearch APIs.
ParseError(String)
InvalidInputError(String)
ModelError(String)
Generic error calling a model.
ReqwestError(Error)
Trait Implementations§
Source§impl Debug for AnchorChainError
impl Debug for AnchorChainError
Source§impl Display for AnchorChainError
impl Display for AnchorChainError
Source§impl Error for AnchorChainError
impl Error for AnchorChainError
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<Error> for AnchorChainError
impl From<Error> for AnchorChainError
Source§impl From<Error> for AnchorChainError
impl From<Error> for AnchorChainError
Source§impl From<Error> for AnchorChainError
impl From<Error> for AnchorChainError
Source§impl From<Error> for AnchorChainError
impl From<Error> for AnchorChainError
Source§impl From<OpenAIError> for AnchorChainError
impl From<OpenAIError> for AnchorChainError
Source§fn from(source: OpenAIError) -> Self
fn from(source: OpenAIError) -> Self
Converts to this type from the input type.
Source§impl From<SdkError<InvokeModelError, Response>> for AnchorChainError
impl From<SdkError<InvokeModelError, Response>> for AnchorChainError
Source§fn from(source: SdkError<InvokeModelError>) -> Self
fn from(source: SdkError<InvokeModelError>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for AnchorChainError
impl !RefUnwindSafe for AnchorChainError
impl Send for AnchorChainError
impl Sync for AnchorChainError
impl Unpin for AnchorChainError
impl !UnwindSafe for AnchorChainError
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> 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 moreCreates a shared type from an unshared type.
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.