#[non_exhaustive]pub enum AgentCoreError {
Show 13 variants
InvalidArn(String),
Invoke(Error),
Body(Error),
Reply(String),
NoSession,
UnknownRuntime(String),
Query(Error),
QueryEnded(QueryStatus),
NoSpans {
session_id: String,
waited: Duration,
},
Request(BuildError),
Evaluate(Error),
Result {
evaluator: String,
code: String,
message: String,
},
NoScore(String),
}Available on crate feature
agentcore only.Expand description
Why an AgentCore target or evaluator failed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidArn(String)
The runtime ARN has no runtime/<id> part.
Invoke(Error)
InvokeAgentRuntime failed.
Body(Error)
The reply body could not be read.
Reply(String)
The reply is not {"response": "..."}.
NoSession
The trial has no session id.
UnknownRuntime(String)
The session’s runtime is unknown.
Query(Error)
A CloudWatch Logs Insights call failed.
QueryEnded(QueryStatus)
A Logs Insights query ended without results.
NoSpans
The session’s spans did not arrive in time.
Request(BuildError)
An Evaluate request could not be built.
Evaluate(Error)
Evaluate failed.
Result
An evaluation result is an error.
Fields
NoScore(String)
Evaluate returned no scored result.
Trait Implementations§
Source§impl Debug for AgentCoreError
impl Debug for AgentCoreError
Source§impl Display for AgentCoreError
impl Display for AgentCoreError
Source§impl Error for AgentCoreError
impl Error for AgentCoreError
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<AgentCoreError> for EvalError
impl From<AgentCoreError> for EvalError
Source§fn from(error: AgentCoreError) -> Self
fn from(error: AgentCoreError) -> Self
Converts to this type from the input type.
Source§impl From<BuildError> for AgentCoreError
impl From<BuildError> for AgentCoreError
Source§fn from(source: BuildError) -> Self
fn from(source: BuildError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AgentCoreError
impl !UnwindSafe for AgentCoreError
impl Forget for AgentCoreError
impl Freeze for AgentCoreErrorwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(&'static str, String)>: Freeze,
PhantomData<ValidationExceptionField>: Freeze,
*const dyn Error + Send + Sync is !null: Freeze,
PhantomData<dyn Error + Send + Sync>: Freeze,
*const () is !null: Freeze,
PhantomData<ErrorData<CustomOwner>>: Freeze,
&'static str: Freeze,
String: Freeze,
impl Move for AgentCoreError
impl Send for AgentCoreError
impl Sync for AgentCoreError
impl Unpin for AgentCoreError
impl UnsafeUnpin for AgentCoreErrorwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(&'static str, String)>: UnsafeUnpin,
PhantomData<ValidationExceptionField>: UnsafeUnpin,
*const dyn Error + Send + Sync is !null: UnsafeUnpin,
PhantomData<dyn Error + Send + Sync>: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
&'static str: UnsafeUnpin,
String: UnsafeUnpin,
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> 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.