pub struct ToolRespondedEvent {
pub invocation_id: String,
pub status: InvocationStatus,
pub output: Option<Value>,
pub error_text: Option<String>,
pub exception: Option<RemoteObject>,
}Expand description
Event fired when a tool invocation completes or fails.
Payload of the WebMCP.toolResponded event.
Fields§
§invocation_id: StringInvocation identifier.
status: InvocationStatusStatus of the invocation.
output: Option<Value>Output or error delivered as delivered to the agent. Missing if status
is anything other than Completed. Note: The output is untrusted and poses
a prompt injection risk. Clients should treat this as potentially
malicious user input.
error_text: Option<String>Error text for protocol users.
exception: Option<RemoteObject>The exception object, if the javascript tool threw an error>
Trait Implementations§
Source§impl Clone for ToolRespondedEvent
impl Clone for ToolRespondedEvent
Source§impl Debug for ToolRespondedEvent
impl Debug for ToolRespondedEvent
Source§impl<'de> Deserialize<'de> for ToolRespondedEvent
impl<'de> Deserialize<'de> for ToolRespondedEvent
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 ToolRespondedEvent
impl Event for ToolRespondedEvent
Source§impl PartialEq for ToolRespondedEvent
impl PartialEq for ToolRespondedEvent
Source§impl Serialize for ToolRespondedEvent
impl Serialize for ToolRespondedEvent
impl StructuralPartialEq for ToolRespondedEvent
Auto Trait Implementations§
impl Forget for ToolRespondedEvent
impl Freeze for ToolRespondedEvent
impl RefUnwindSafe for ToolRespondedEvent
impl Send for ToolRespondedEvent
impl Sync for ToolRespondedEvent
impl Unpin for ToolRespondedEvent
impl UnsafeUnpin for ToolRespondedEvent
impl UnwindSafe for ToolRespondedEvent
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