pub enum ToolHandlerInput {
Invoke(ToolInvocation),
Interaction(ToolInteractionResponse),
Cancel {
reason: Option<String>,
},
}Expand description
Input to one tool-handler transition.
Variants§
Invoke(ToolInvocation)
Starts the invocation with caller-supplied arguments.
Interaction(ToolInteractionResponse)
Resolves the handler’s pending caller interaction.
Cancel
Cancels the invocation.
Trait Implementations§
Source§impl Clone for ToolHandlerInput
impl Clone for ToolHandlerInput
Source§impl Debug for ToolHandlerInput
impl Debug for ToolHandlerInput
Source§impl<'de> Deserialize<'de> for ToolHandlerInput
impl<'de> Deserialize<'de> for ToolHandlerInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ToolHandlerInput
impl PartialEq for ToolHandlerInput
Source§impl Serialize for ToolHandlerInput
impl Serialize for ToolHandlerInput
impl StructuralPartialEq for ToolHandlerInput
Auto Trait Implementations§
impl Freeze for ToolHandlerInput
impl RefUnwindSafe for ToolHandlerInput
impl Send for ToolHandlerInput
impl Sync for ToolHandlerInput
impl Unpin for ToolHandlerInput
impl UnsafeUnpin for ToolHandlerInput
impl UnwindSafe for ToolHandlerInput
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