Event AfterToolInvocation
Fired after a tool invocation finishes (or when it was cancelled/errored).
public event EventHandler<AfterToolInvocationEventArgs> AfterToolInvocation
Returns
- EventHandler<AfterToolInvocationEventArgs>
- Fired after a tool invocation finishes (or when it was cancelled/errored).
- Implements
Examples
chat.AfterToolInvocation += (sender, e) =>
{
Console.WriteLine($"Tool {e.ToolName} completed: {e.Result}");
};