pub struct StepExecutionResult {
pub output: Value,
pub usage: Option<ResourceUsage>,
pub provider: Option<String>,
pub provider_version: Option<String>,
pub tool_events: Vec<ToolEventRecord>,
pub checkpoint: Option<Value>,
pub capability_token: Option<CapabilityToken>,
}Expand description
Normalized return value from a StepExecutor invocation.
Fields§
§output: Value§usage: Option<ResourceUsage>§provider: Option<String>§provider_version: Option<String>§tool_events: Vec<ToolEventRecord>§checkpoint: Option<Value>§capability_token: Option<CapabilityToken>Implementations§
Source§impl StepExecutionResult
impl StepExecutionResult
pub fn new(output: Value) -> Self
pub fn with_usage(output: Value, usage: ResourceUsage) -> Self
pub fn with_metadata( self, provider: Option<String>, provider_version: Option<String>, ) -> Self
pub fn with_checkpoint(self, checkpoint: Value) -> Self
pub fn with_capability_token(self, token: CapabilityToken) -> Self
pub fn push_tool_event(&mut self, event: ToolEventRecord)
Trait Implementations§
Source§impl Clone for StepExecutionResult
impl Clone for StepExecutionResult
Source§fn clone(&self) -> StepExecutionResult
fn clone(&self) -> StepExecutionResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StepExecutionResult
impl RefUnwindSafe for StepExecutionResult
impl Send for StepExecutionResult
impl Sync for StepExecutionResult
impl Unpin for StepExecutionResult
impl UnwindSafe for StepExecutionResult
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,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request