pub enum ErrorResponderOutcome {
SynthesizeResult(CallToolResult),
PassThrough,
}Expand description
Decision returned by an McpErrorResponder.
Variants§
SynthesizeResult(CallToolResult)
Replace the error with a synthesized successful response. The
returned CallToolResult flows through agentkit-mcp’s normal
tool-result conversion: structured_content becomes
ToolOutput::Structured, content becomes text / media parts,
and is_error is honoured.
PassThrough
Defer to default behavior; the invocation error continues to surface
as ToolError::ExecutionFailed.
Auto Trait Implementations§
impl Freeze for ErrorResponderOutcome
impl RefUnwindSafe for ErrorResponderOutcome
impl Send for ErrorResponderOutcome
impl Sync for ErrorResponderOutcome
impl Unpin for ErrorResponderOutcome
impl UnsafeUnpin for ErrorResponderOutcome
impl UnwindSafe for ErrorResponderOutcome
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