ToolActivatedEvent Class
The toolactivated event, fired at the ModelContext of the document of a tool after its execute callback is invoked (https://webmachinelearning.github.io/webmcp/#tool-activated-event).
public sealed class ToolActivatedEvent : Event- Inheritance
EventToolActivatedEvent
Constructors
| Name | Description |
|---|---|
| ToolActivatedEvent(string, ToolActivatedEventInit?) | Creates a toolactivated event. |
ToolActivatedEvent(string, ToolActivatedEventInit?)
ModelContextTypes.csCreates a toolactivated event.
public ToolActivatedEvent(string type, ToolActivatedEventInit? eventInitDict = null)Properties
| Name | Description |
|---|---|
| ToolName | Gets the name of the tool whose execution started. |
ToolName
ModelContextTypes.csGets the name of the tool whose execution started.
public string ToolName { get; }