Skip to content

Commit

Permalink
refactor: update telemetry (#12412)
Browse files Browse the repository at this point in the history
* refactor: update telemetry
  • Loading branch information
xzf0587 authored Sep 19, 2024
1 parent 37a49c4 commit 7dab354
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/fx-core/src/component/coordinator/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,10 @@ class Coordinator {
[TelemetryProperty.Capabilities]: capability,
[TelemetryProperty.IsFromTdp]: (!!inputs.teamsAppFromTdp).toString(),
});
if (projectType === ProjectTypeOptions.customCopilot().id) {
if (
projectType === ProjectTypeOptions.customCopilot().id ||
(projectType === ProjectTypeOptions.bot().id && inputs.platform === Platform.VS)
) {
merge(actionContext?.telemetryProps, {
[TelemetryProperty.CustomCopilotRAG]: inputs["custom-copilot-rag"] ?? "",
[TelemetryProperty.CustomCopilotAgent]: inputs["custom-copilot-agent"] ?? "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The app template is built using the Teams AI library, which provides the capabil
## Create your Assistant
**Before running or debugging your bot, follow these steps to setup your own Assistant.**

> This app template provides script `Create-Assistant.ps1` to help create assistant. You can change the instructions and settings in the script to customize assistant.
> This app template provides script `Create-Assistant.ps1` to help create assistant. The app assistant provides capabilities such as solving a math problem, calling functions for city weather and city nickname. Get more information in `ActionHandlers.cs`. You can change the instructions and settings in the script to customize assistant.
{{#useOpenAI}}
1. Ensure your OpenAI settings filled in `appsettings.TestTool.json`.
```
Expand Down

0 comments on commit 7dab354

Please sign in to comment.