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
EventToolCancelEvent
Constructors
| Name | Description |
|---|---|
| ToolCancelEvent(string, ToolCancelEventInit?) | Creates a toolcancel event. |
ToolCancelEvent(string, ToolCancelEventInit?)
ModelContextTypes.csCreates a toolcancel event.
public ToolCancelEvent(string type, ToolCancelEventInit? eventInitDict = null)Properties
| Name | Description |
|---|---|
| ToolName | Gets the name of the tool whose execution was canceled. |
ToolName
ModelContextTypes.csGets the name of the tool whose execution was canceled.
public string ToolName { get; }