Skip to content

Commit f6bc2fd

Browse files
New Sample - Allow Inline Editing for Adaptive Card Responses in Microsoft 365 Copilot Declarative Agents (#105)
* New Sample - Allow Inline Editing for Adaptive Card Responses in Microsoft 365 Copilot Declarative Agents * Updated assignedTo value * Fixed PR Comments
1 parent 83d59aa commit f6bc2fd

31 files changed

Lines changed: 1637 additions & 0 deletions
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.funcignore
2+
*.js.map
3+
*.ts
4+
.git*
5+
.localConfigs
6+
.vscode
7+
local.settings.json
8+
test
9+
tsconfig.json
10+
.DS_Store
11+
.deployment
12+
node_modules/.bin
13+
node_modules/azure-functions-core-tools
14+
README.md
15+
tsconfig.json
16+
m365agents.yml
17+
m365agents.*.yml
18+
/env/
19+
/appPackage/
20+
/infra/
21+
/devTools/
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
# TeamsFx files
3+
env/.env.*.user
4+
.DS_Store
5+
build
6+
appPackage/build
7+
.deployment
8+
9+
# dependencies
10+
/node_modules
11+
12+
# testing
13+
/coverage
14+
15+
# Dev tool directories
16+
/devTools/
17+
18+
# TypeScript output
19+
dist
20+
out
21+
22+
# Azure Functions artifacts
23+
bin
24+
obj
25+
appsettings.json
26+
27+
# Local data
28+
.localConfigs
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"TeamsDevApp.ms-teams-vscode-extension"
4+
]
5+
}
Lines changed: 113 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Launch Agent in Teams (Edge)",
6+
"type": "msedge",
7+
"request": "launch",
8+
"url": "https://m365.cloud.microsoft/chat/entity1-d870f6cd-4aa5-4d42-9626-ab690c041429/${local:agent-hint}?auth=2&developerMode=Basic",
9+
"cascadeTerminateToConfigurations": [
10+
"Attach to Backend"
11+
],
12+
"presentation": {
13+
"group": "all",
14+
"hidden": true
15+
},
16+
"internalConsoleOptions": "neverOpen",
17+
"perScriptSourcemaps": "yes",
18+
"runtimeArgs": [
19+
"--remote-debugging-port=9222",
20+
"--no-first-run"
21+
]
22+
},
23+
{
24+
"name": "Launch Agent in Teams (Chrome)",
25+
"type": "chrome",
26+
"request": "launch",
27+
"url": "https://m365.cloud.microsoft/chat/entity1-d870f6cd-4aa5-4d42-9626-ab690c041429/${local:agent-hint}?auth=2&developerMode=Basic",
28+
"cascadeTerminateToConfigurations": [
29+
"Attach to Backend"
30+
],
31+
"presentation": {
32+
"group": "all",
33+
"hidden": true
34+
},
35+
"internalConsoleOptions": "neverOpen",
36+
"perScriptSourcemaps": "yes",
37+
"runtimeArgs": [
38+
"--remote-debugging-port=9223",
39+
"--no-first-run"
40+
]
41+
},
42+
{
43+
"name": "Preview in Copilot (Edge)",
44+
"type": "msedge",
45+
"request": "launch",
46+
"url": "https://m365.cloud.microsoft/chat/entity1-d870f6cd-4aa5-4d42-9626-ab690c041429/${agent-hint}?auth=2&developerMode=Basic",
47+
"presentation": {
48+
"group": "remote",
49+
"order": 1
50+
},
51+
"internalConsoleOptions": "neverOpen",
52+
"runtimeArgs": [
53+
"--remote-debugging-port=9224",
54+
"--no-first-run"
55+
]
56+
},
57+
{
58+
"name": "Preview in Copilot (Chrome)",
59+
"type": "chrome",
60+
"request": "launch",
61+
"url": "https://m365.cloud.microsoft/chat/entity1-d870f6cd-4aa5-4d42-9626-ab690c041429/${agent-hint}?auth=2&developerMode=Basic",
62+
"presentation": {
63+
"group": "remote",
64+
"order": 2
65+
},
66+
"internalConsoleOptions": "neverOpen",
67+
"runtimeArgs": [
68+
"--remote-debugging-port=9225",
69+
"--no-first-run"
70+
]
71+
},
72+
{
73+
"name": "Attach to Backend",
74+
"type": "node",
75+
"request": "attach",
76+
"port": 9229,
77+
"restart": true,
78+
"presentation": {
79+
"group": "all",
80+
"hidden": true
81+
},
82+
"internalConsoleOptions": "neverOpen"
83+
}
84+
],
85+
"compounds": [
86+
{
87+
"name": "Debug in Copilot (Edge)",
88+
"configurations": [
89+
"Launch Agent in Teams (Edge)",
90+
"Attach to Backend"
91+
],
92+
"preLaunchTask": "Start Agent Locally",
93+
"presentation": {
94+
"group": "all",
95+
"order": 1
96+
},
97+
"stopAll": true
98+
},
99+
{
100+
"name": "Debug in Copilot (Chrome)",
101+
"configurations": [
102+
"Launch Agent in Teams (Chrome)",
103+
"Attach to Backend"
104+
],
105+
"preLaunchTask": "Start Agent Locally",
106+
"presentation": {
107+
"group": "all",
108+
"order": 2
109+
},
110+
"stopAll": true
111+
}
112+
]
113+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"debug.onTaskErrors": "abort",
3+
"json.schemas": [
4+
{
5+
"fileMatch": [
6+
"/aad.*.json"
7+
],
8+
"schema": {}
9+
}
10+
],
11+
"azureFunctions.stopFuncTaskPostDebug": false,
12+
"azureFunctions.showProjectWarning": false,
13+
}
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
// This file is automatically generated by Microsoft 365 Agents Toolkit.
2+
// The teamsfx tasks defined in this file require Microsoft 365 Agents Toolkit version >= 5.0.0.
3+
// See https://aka.ms/teamsfx-tasks for details on how to customize each task.
4+
{
5+
"version": "2.0.0",
6+
"tasks": [
7+
{
8+
"label": "Start Agent Locally",
9+
"dependsOn": [
10+
"Validate prerequisites",
11+
"Start local tunnel",
12+
"Create resources",
13+
"Build project",
14+
"Start application"
15+
],
16+
"dependsOrder": "sequence"
17+
},
18+
{
19+
"label": "Validate prerequisites",
20+
"type": "teamsfx",
21+
"command": "debug-check-prerequisites",
22+
"args": {
23+
"prerequisites": [
24+
"nodejs",
25+
"m365Account",
26+
"portOccupancy"
27+
],
28+
"portOccupancy": [
29+
7071,
30+
9229
31+
]
32+
}
33+
},
34+
{
35+
// Start the local tunnel service to forward public URL to local port and inspect traffic.
36+
// See https://aka.ms/teamsfx-tasks/local-tunnel for the detailed args definitions.
37+
"label": "Start local tunnel",
38+
"type": "teamsfx",
39+
"command": "debug-start-local-tunnel",
40+
"args": {
41+
"type": "dev-tunnel",
42+
"ports": [
43+
{
44+
"portNumber": 7071,
45+
"protocol": "http",
46+
"access": "public",
47+
"writeToEnvironmentFile": {
48+
"endpoint": "OPENAPI_SERVER_URL", // output tunnel endpoint as OPENAPI_SERVER_URL
49+
}
50+
}
51+
],
52+
"env": "local"
53+
},
54+
"isBackground": true,
55+
"problemMatcher": "$teamsfx-local-tunnel-watch"
56+
},
57+
{
58+
"label": "Create resources",
59+
"type": "teamsfx",
60+
"command": "provision",
61+
"args": {
62+
"env": "local"
63+
}
64+
},
65+
{
66+
"label": "Build project",
67+
"type": "teamsfx",
68+
"command": "deploy",
69+
"args": {
70+
"env": "local"
71+
}
72+
},
73+
{
74+
"label": "Start application",
75+
"dependsOn": [
76+
"Start backend"
77+
]
78+
},
79+
{
80+
"label": "Start backend",
81+
"type": "shell",
82+
"command": "npm run dev:teamsfx",
83+
"isBackground": true,
84+
"options": {
85+
"cwd": "${workspaceFolder}",
86+
"env": {
87+
"PATH": "${workspaceFolder}/devTools/func:${env:PATH}"
88+
}
89+
},
90+
"windows": {
91+
"options": {
92+
"env": {
93+
"PATH": "${workspaceFolder}/devTools/func;${env:PATH}"
94+
}
95+
}
96+
},
97+
"problemMatcher": {
98+
"pattern": {
99+
"regexp": "^.*$",
100+
"file": 0,
101+
"location": 1,
102+
"message": 2
103+
},
104+
"background": {
105+
"activeOnStart": true,
106+
"beginsPattern": "^.*(Job host stopped|signaling restart).*$",
107+
"endsPattern": "^.*(Worker process started and initialized|Host lock lease acquired by instance ID).*$"
108+
}
109+
},
110+
"presentation": {
111+
"reveal": "silent"
112+
}
113+
}
114+
]
115+
}

0 commit comments

Comments
 (0)