ToolCancelEvent Class

The toolcancel event, fired at the ModelContext of the document of a tool when an execution of the tool is canceled (https://webmachinelearning.github.io/webmcp/#tool-cancel-event).

public sealed class ToolCancelEvent : Event
Inheritance
Event ToolCancelEvent

Constructors

NameDescription
ToolCancelEvent(string, ToolCancelEventInit?)Creates a toolcancel event.

ToolCancelEvent(string, ToolCancelEventInit?)

ModelContextTypes.cs

Creates a toolcancel event.

public ToolCancelEvent(string type, ToolCancelEventInit? eventInitDict = null)

Properties

NameDescription
ToolNameGets the name of the tool whose execution was canceled.

Gets the name of the tool whose execution was canceled.

public string ToolName { get; }