pub type TypedRun<T> = AgentRunner<TypedOutput<T>>;Expand description
A run that deserializes its accepted output as T.
Configure it with the same setters as AgentRunner, then .await it for
a TypedPromptResponse<T>. With a retries budget, a
failed attempt (run error, empty output, unparseable output) is retried
from scratch; usage accumulates across attempts.
Aliased Type§
pub struct TypedRun<T> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<T> IntoFuture for TypedRun<T>
impl<T> IntoFuture for TypedRun<T>
Source§type Output = Result<TypedPromptResponse<T>, StructuredOutputError>
type Output = Result<TypedPromptResponse<T>, StructuredOutputError>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <AgentRunner<TypedOutput<T>> as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <AgentRunner<TypedOutput<T>> as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more