pub trait Target: WasmCompatSend + WasmCompatSync {
// Required method
fn run<'a>(
&'a self,
case: &'a Case,
) -> WasmBoxedFuture<'a, Result<TargetOutput, TargetError>>;
}Expand description
Something to evaluate: runs a case’s input and reports what it did.
Required Methods§
Sourcefn run<'a>(
&'a self,
case: &'a Case,
) -> WasmBoxedFuture<'a, Result<TargetOutput, TargetError>>
fn run<'a>( &'a self, case: &'a Case, ) -> WasmBoxedFuture<'a, Result<TargetOutput, TargetError>>
Run case.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl Target for Agent
impl Target for Agent
Source§fn run<'a>(
&'a self,
case: &'a Case,
) -> WasmBoxedFuture<'a, Result<TargetOutput, TargetError>>
fn run<'a>( &'a self, case: &'a Case, ) -> WasmBoxedFuture<'a, Result<TargetOutput, TargetError>>
Prompts the agent with the case’s input. The tool calls are the ones in the run’s transcript; the usage is the run’s total.
Implementors§
impl Target for AgentCoreTarget
Available on crate feature
agentcore only.impl<F, Fut, O> Target for FnTarget<F>where
F: Fn(Case) -> Fut + WasmCompatSend + WasmCompatSync,
Fut: Future<Output = Result<O, TargetError>> + WasmCompatSend + 'static,
O: Into<TargetOutput>,
impl<N: Node> Target for NodeTarget<N>
Available on crate feature
multiagent only.