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
Event ToolActivatedEvent

Constructors

NameDescription
ToolActivatedEvent(string, ToolActivatedEventInit?)Creates a toolactivated event.

ToolActivatedEvent(string, ToolActivatedEventInit?)

ModelContextTypes.cs

Creates a toolactivated event.

public ToolActivatedEvent(string type, ToolActivatedEventInit? eventInitDict = null)

Properties

NameDescription
ToolNameGets the name of the tool whose execution started.

Gets the name of the tool whose execution started.

public string ToolName { get; }