pub enum FinalToolOutcome {
Complete(CompleteResult<FinalCallToolResult>),
InputRequired(InputRequiredResult),
}Expand description
One application-authored outcome of a final tools/call handler.
CreateTask is deliberately a request for the router to create durable
state, not a pre-created task result. The router can therefore enforce the
peer’s negotiated Tasks capability before the application-owned store is
mutated.
Variants§
Complete(CompleteResult<FinalCallToolResult>)
Complete this tool call synchronously through the final result algebra.
InputRequired(InputRequiredResult)
Ask the final peer for additional input before retrying this tool call.
The router extracts and validates its input descriptors, then mints the retry state without coercing the result into a legacy projection.
Trait Implementations§
Source§impl From<CompleteResult<FinalCallToolResult>> for FinalToolOutcome
impl From<CompleteResult<FinalCallToolResult>> for FinalToolOutcome
Source§fn from(result: CompleteResult<FinalCallToolResult>) -> Self
fn from(result: CompleteResult<FinalCallToolResult>) -> Self
Converts to this type from the input type.
Source§impl From<InputRequiredResult> for FinalToolOutcome
impl From<InputRequiredResult> for FinalToolOutcome
Source§fn from(result: InputRequiredResult) -> Self
fn from(result: InputRequiredResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FinalToolOutcome
impl RefUnwindSafe for FinalToolOutcome
impl Send for FinalToolOutcome
impl Sync for FinalToolOutcome
impl Unpin for FinalToolOutcome
impl UnsafeUnpin for FinalToolOutcome
impl UnwindSafe for FinalToolOutcome
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).