pub struct ToolInvokedEvent {
pub frame_id: FrameId,
pub invocation_id: String,
pub input: String,
pub tool_name: Option<String>,
pub tool_id: Option<ToolId>,
}Expand description
Event fired when a tool invocation starts.
Payload of the WebMCP.toolInvoked event.
Fields§
§frame_id: FrameIdFrame id
invocation_id: StringInvocation identifier.
input: StringThe input parameters used for the invocation.
tool_name: Option<String>Name of the tool to invoke. Missing if the tool was invoked by its identifier, but could not be found (e.g., it was already unregistered), so its name could not be recovered.
tool_id: Option<ToolId>Identifier of the tool to invoke. Missing if the tool was invoked by name, but could not be found, so its identifier could not be recovered.
Trait Implementations§
Source§impl Clone for ToolInvokedEvent
impl Clone for ToolInvokedEvent
Source§impl Debug for ToolInvokedEvent
impl Debug for ToolInvokedEvent
Source§impl Default for ToolInvokedEvent
impl Default for ToolInvokedEvent
Source§impl<'de> Deserialize<'de> for ToolInvokedEvent
impl<'de> Deserialize<'de> for ToolInvokedEvent
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 Event for ToolInvokedEvent
impl Event for ToolInvokedEvent
Source§impl PartialEq for ToolInvokedEvent
impl PartialEq for ToolInvokedEvent
Source§impl Serialize for ToolInvokedEvent
impl Serialize for ToolInvokedEvent
impl StructuralPartialEq for ToolInvokedEvent
Auto Trait Implementations§
impl Forget for ToolInvokedEvent
impl Freeze for ToolInvokedEvent
impl RefUnwindSafe for ToolInvokedEvent
impl Send for ToolInvokedEvent
impl Sync for ToolInvokedEvent
impl Unpin for ToolInvokedEvent
impl UnsafeUnpin for ToolInvokedEvent
impl UnwindSafe for ToolInvokedEvent
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