pub struct AgentCore { /* private fields */ }Available on crate feature
agentcore only.Expand description
The AWS clients AgentCore targets and evaluators share, and the spans downloaded so far, so several evaluators of one run download them once.
Implementations§
Source§impl AgentCore
impl AgentCore
Sourcepub async fn from_env() -> Self
pub async fn from_env() -> Self
Clients from the standard AWS configuration: the environment, the shared config files, an IAM role.
Sourcepub fn target(&self, runtime_arn: impl Into<String>) -> AgentCoreTarget
pub fn target(&self, runtime_arn: impl Into<String>) -> AgentCoreTarget
The runtime runtime_arn (an AgentCore Runtime agent speaking the
HTTP protocol) as a target.
Sourcepub fn evaluator(&self, evaluator_id: impl Into<String>) -> AgentCoreEvaluator
pub fn evaluator(&self, evaluator_id: impl Into<String>) -> AgentCoreEvaluator
The AgentCore evaluator evaluator_id: a built-in such as
Builtin.Correctness, or a custom evaluator’s id.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AgentCore
impl !UnwindSafe for AgentCore
impl Forget for AgentCore
impl Freeze for AgentCore
impl Move for AgentCore
impl Send for AgentCore
impl Sync for AgentCore
impl Unpin for AgentCore
impl UnsafeUnpin for AgentCore
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> 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> ⓘ
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.