pub struct AgentCoreEvaluator { /* private fields */ }agentcore only.Expand description
An AgentCore Evaluations evaluator; see AgentCore::evaluator.
Scores trials that ran in an AgentCore session (from an
AgentCoreTarget, or any trial with a session id and a
runtime_log_group): it waits for the
session’s spans in CloudWatch Logs, sends them to Evaluate with the
case’s references (expected answer, tool trajectory, assertions), and
scores the mean of the results; trace-level evaluators give one per trace.
Named after the evaluator id.
Implementations§
Source§impl AgentCoreEvaluator
impl AgentCoreEvaluator
Sourcepub fn threshold(self, threshold: f64) -> Self
pub fn threshold(self, threshold: f64) -> Self
Pass when the mean value is at least threshold (0.5 unless set).
Sourcepub fn ingestion_timeout(self, timeout: Duration) -> Self
pub fn ingestion_timeout(self, timeout: Duration) -> Self
How long to wait for a run’s spans to reach CloudWatch Logs (5 minutes unless set).
Sourcepub fn poll_interval(self, interval: Duration) -> Self
pub fn poll_interval(self, interval: Duration) -> Self
How often to query for the spans while waiting (10 seconds unless set).
Sourcepub fn runtime_log_group(self, log_group: impl Into<String>) -> Self
pub fn runtime_log_group(self, log_group: impl Into<String>) -> Self
The runtime’s log group, such as
/aws/bedrock-agentcore/runtimes/<runtime-id>-DEFAULT: for trials
that did not come from an AgentCoreTarget of the same
AgentCore.
Trait Implementations§
Source§impl Clone for AgentCoreEvaluator
impl Clone for AgentCoreEvaluator
Source§impl Debug for AgentCoreEvaluator
impl Debug for AgentCoreEvaluator
Auto Trait Implementations§
impl !RefUnwindSafe for AgentCoreEvaluator
impl !UnwindSafe for AgentCoreEvaluator
impl Forget for AgentCoreEvaluator
impl Freeze for AgentCoreEvaluator
impl Move for AgentCoreEvaluator
impl Send for AgentCoreEvaluator
impl Sync for AgentCoreEvaluator
impl Unpin for AgentCoreEvaluator
impl UnsafeUnpin for AgentCoreEvaluator
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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 more