510
511
toolInvoked(report: IAgentHostToolInvokedReport): void {
513
>
// previously emitted by `CopilotAgentSession`). Action signals are keyed
514
>
// by their chat-channel URI, so normalize it back to the session URI.
515
>
const session = isAhpChatChannel(report.session) ? parseRequiredSessionUriFromChatUri(report.session) : report.session;
516
>
this._telemetryService.publicLog2<LanguageModelToolInvokedEvent, LanguageModelToolInvokedClassification>('languageModelToolInvoked', {
517
>
result: report.result,
518
>
chatSessionId: session,
519
>
toolId: report.toolId,
520
>
toolExtensionId: undefined,
521
>
toolSourceKind: report.toolSourceKind,
522
>
invocationTimeMs: report.invocationTimeMs,
523
>
provider: report.provider,
524
>
});
525
>
}
526
527
toolCallStalled(report: IAgentHostToolCallStalledReport): void {