microsoft/teams.net

Public

mirrored fromhttps://github.com/microsoft/teams.netAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
copilot/sub-pr-338

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

core/test/Microsoft.Teams.Bot.Compat.UnitTests/TestData/SuggestedActionsActivity.json

240lines · modecode

1{
2 "type": "message",
3 "serviceUrl": "https://smba.trafficmanager.net/teams",
4 "from": {
5 "id": "a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6"
6 },
7 "recipient": {},
8 "conversation": {
9 "id": "19:xYz9pQrS8tUv5wXy3zAbCdEfGhIjKlMnOpQrStUvWx-Y2@thread.tacv2"
10 },
11 "text": "Hi there.\n\nI'm working on a status report and will share it in this chat shortly. You'll be able to make edits, and once it's ready, send it to the channel.\n\n\n\nYou can add more reviewers anytime.",
12 "inputHint": "acceptingInput",
13 "suggestedActions": {
14 "actions": [
15 {
16 "type": "Action.Odsl",
17 "title": "Add reviewers",
18 "value": {
19 "actions": {
20 "odsl": {
21 "statements": [
22 {
23 "name": "statusReportConfiguration",
24 "arguments": [
25 {
26 "name": "agentId",
27 "value": ""
28 },
29 {
30 "name": "agentName",
31 "value": "PA Test"
32 },
33 {
34 "name": "agentType",
35 "value": 0
36 },
37 {
38 "name": "teamId",
39 "value": ""
40 },
41 {
42 "name": "channelId",
43 "value": "19:xYz9pQrS8tUv5wXy3zAbCdEfGhIjKlMnOpQrStUvWx-Y2@thread.tacv2"
44 },
45 {
46 "name": "recurrence",
47 "value": {
48 "pattern": {
49 "patternType": "test"
50 },
51 "range": {
52 "startDate": "test",
53 "endDate": "test"
54 }
55 }
56 },
57 {
58 "name": "approvalList",
59 "value": [
60 "123",
61 "345"
62 ]
63 },
64 {
65 "name": "welcomeMessageType",
66 "value": "ApproversChat"
67 },
68 {
69 "name": "chatId",
70 "value": "19:xYz9pQrS8tUv5wXy3zAbCdEfGhIjKlMnOpQrStUvWx-Y2@thread.tacv2"
71 },
72 {
73 "name": "displayText",
74 "value": "Add reviewers"
75 },
76 {
77 "name": "deleteAgentDisplayText",
78 "value": ""
79 }
80 ]
81 }
82 ]
83 }
84 },
85 "entities": [
86 "chat"
87 ]
88 }
89 },
90 {
91 "type": "Action.Odsl",
92 "title": "Open agent settings",
93 "value": {
94 "actions": {
95 "odsl": {
96 "statements": [
97 {
98 "name": "agentConfiguration",
99 "arguments": [
100 {
101 "name": "agentId",
102 "value": ""
103 },
104 {
105 "name": "agentName",
106 "value": "PA Test"
107 },
108 {
109 "name": "agentType",
110 "value": 0
111 },
112 {
113 "name": "teamId",
114 "value": ""
115 },
116 {
117 "name": "channelId",
118 "value": "19:xYz9pQrS8tUv5wXy3zAbCdEfGhIjKlMnOpQrStUvWx-Y2@thread.tacv2"
119 },
120 {
121 "name": "recurrence",
122 "value": {
123 "pattern": {
124 "patternType": "test"
125 },
126 "range": {
127 "startDate": "test",
128 "endDate": "test"
129 }
130 }
131 },
132 {
133 "name": "approvalList",
134 "value": [
135 "123",
136 "345"
137 ]
138 },
139 {
140 "name": "welcomeMessageType",
141 "value": "ApproversChat"
142 },
143 {
144 "name": "chatId",
145 "value": "19:xYz9pQrS8tUv5wXy3zAbCdEfGhIjKlMnOpQrStUvWx-Y2@thread.tacv2"
146 },
147 {
148 "name": "displayText",
149 "value": "Open agent settings"
150 },
151 {
152 "name": "deleteAgentDisplayText",
153 "value": ""
154 }
155 ]
156 }
157 ]
158 }
159 },
160 "entities": [
161 "chat"
162 ]
163 }
164 },
165 {
166 "type": "Action.Compose",
167 "title": "Ask me a question",
168 "value": {
169 "type": "Teams.chatMessage",
170 "data": {
171 "body": {
172 "additionalData": {},
173 "backingStore": {
174 "returnOnlyChangedValues": false,
175 "initializationCompleted": true
176 },
177 "content": "<at id=\"0\">PA Test</at>"
178 },
179 "mentions": [
180 {
181 "additionalData": {},
182 "backingStore": {
183 "returnOnlyChangedValues": false,
184 "initializationCompleted": false
185 },
186 "id": 0,
187 "mentioned": {
188 "additionalData": {},
189 "backingStore": {
190 "returnOnlyChangedValues": false,
191 "initializationCompleted": false
192 },
193 "odataType": "#microsoft.graph.chatMessageMentionedIdentitySet",
194 "user": {
195 "additionalData": {},
196 "backingStore": {
197 "returnOnlyChangedValues": false,
198 "initializationCompleted": false
199 },
200 "displayName": "PA Test",
201 "id": "28:a1b2c3d4-e5f6-47a8-b9c0-d1e2f3a4b5c6",
202 "appId": ""
203 }
204 },
205 "mentionText": "PA Test"
206 }
207 ],
208 "additionalData": {},
209 "backingStore": {
210 "returnOnlyChangedValues": false,
211 "initializationCompleted": true
212 }
213 }
214 }
215 }
216 ]
217 },
218 "attachments": [],
219 "entities": [
220 {
221 "type": "https://schema.org/Message",
222 "@context": "https://schema.org",
223 "@type": "Message",
224 "additionalType": [
225 "AIGeneratedContent"
226 ]
227 },
228 {
229 "type": "BotMessageMetadata",
230 "botTelemetryMessageType": "Welcome-AddApproverChat",
231 "aiMetadata": {
232 "botAiSkill": "{\"cv\":\"GsaulSWnUUWlHf97qANDWA.0.0\",\"reasoningActive\":false}"
233 }
234 }
235 ],
236 "channelData": {
237 "feedbackLoopEnabled": true
238 },
239 "replyToId": "f7e8d9c0-b1a2-4536-9271-a8b9c0d1e2f3"
240}
241