Skip to content
This repository was archived by the owner on Oct 19, 2023. It is now read-only.

Commit e49fb09

Browse files
proppyGerrit Code Review
authored and
Gerrit Code Review
committed
Merge "google-assistant-sdk: add action package"
2 parents a132ed6 + 562d87a commit e49fb09

File tree

2 files changed

+76
-0
lines changed

2 files changed

+76
-0
lines changed

google-assistant-sdk/actions.json

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"manifest": {
3+
"displayName": "Blinky light",
4+
"invocationName": "Blinky light",
5+
"category": "PRODUCTIVITY"
6+
},
7+
"actions": [
8+
{
9+
"name": "com.acme.actions.blink_light",
10+
"availability": {
11+
"deviceClasses": [
12+
{
13+
"assistantSdkDevice": {}
14+
}
15+
]
16+
},
17+
"intent": {
18+
"name": "com.acme.intents.blink_light",
19+
"parameters": [
20+
{
21+
"name": "number",
22+
"type": "SchemaOrg_Number"
23+
},
24+
{
25+
"name": "light_target",
26+
"type": "LightType"
27+
}
28+
],
29+
"trigger": {
30+
"queryPatterns": [
31+
"blink the $LightType:light_target $SchemaOrg_Number:number times"
32+
]
33+
}
34+
},
35+
"fulfillment": {
36+
"staticFulfillment": {
37+
"templatedResponse": {
38+
"items": [
39+
{
40+
"simpleResponse": {
41+
"textToSpeech": "Blinking the $light_target.raw $number times"
42+
}
43+
},
44+
{
45+
"deviceExecution": {
46+
"command": "com.acme.commands.blink_light",
47+
"params": {
48+
"lightKey": "$light_target",
49+
"number": "$number"
50+
}
51+
}
52+
}
53+
]
54+
}
55+
}
56+
}
57+
}
58+
],
59+
"types": [
60+
{
61+
"name": "$LightType",
62+
"entities": [
63+
{
64+
"key": "LIGHT",
65+
"synonyms": [
66+
"LED",
67+
"light",
68+
"bulb",
69+
"light bulb"
70+
]
71+
}
72+
]
73+
}
74+
]
75+
}

google-assistant-sdk/nox.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ def lint(session):
2626
'nox.py', 'setup.py')
2727
session.run('python', 'setup.py', 'check',
2828
'--restructuredtext', '--strict')
29+
session.run('python', '-m', 'json.tool', 'actions.json')
2930

3031

3132
@nox.session

0 commit comments

Comments
 (0)