question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for "stop" action in SUSI response

See original GitHub issue

Actual Behaviour

Currently, new ‘stop’ action is introduced but the action is not implemented.

Expected Behaviour

With stop input SUSI should stop anything it’s doing at that time. ‘stop’ action is introduced to enable user to make SUSI stop anything it’s doing. Try to make SUSI respond to “Stop” (e.g. SUSI is narrating a story and if the user says STOP, it should stop narrating the story).

Steps to reproduce it

Ask SUSI stop, you will get the following actions object:

"actions": [{"type": "stop"}],

Helpful Links: skill_link

Sample JSON Response:

{
		query: "stop",
		count: 1,
 		client_id: "aG9zdF8xNzIuNjguMTQ0LjU3X2Q5NzI1MGMx",
 		query_date: "2018-05-19T22:18:48.641Z",
 		answers: 
[
     		
{
         		data: 
[
             		
{
                 		0: "stop",
                 		actions: 
[
                     		
{
                         		type: "stop"
                     		}
                 		],
                 		token_original: "stop",
                 		token_canonical: "stop",
                 		token_categorized: "end",
                 		timezoneOffset: "-330",
                 		language: "en",
                 		skill_link: "https://github.com/fossasia/susi_server/blob/development/conf/susi/en_0001_foundation.txt",
                 		query: "stop",
                 		skill: "/susi_server/conf/susi/en_0001_foundation.txt"
             		},
             		
{
                 		skill_link: "https://github.com/fossasia/susi_server/blob/development/conf/susi/en_0001_foundation.txt",
                 		query: "stop",
                 		skill: "/susi_server/conf/susi/en_0001_foundation.txt"
             		},
             		
{
                 		skill_link: "https://github.com/fossasia/susi_server/blob/development/conf/susi/en_0001_foundation.txt",
                 		query: "stop",
                 		skill: "/susi_server/conf/susi/en_0001_foundation.txt"
             		},
             		
{
                 		skill_link: "https://github.com/fossasia/susi_server/blob/development/conf/susi/en_0700_ai_play.json",
                 		query: "hey susi",
                 		skill: "/susi_server/conf/susi/en_0700_ai_play.json"
             		}
         		],
         		metadata: 
{
             		count: 4
         		},
         		actions: 
[
             		
{
                 		type: "stop"
             		}
         		],
         		skills: 
[
             		"/susi_server/conf/susi/en_0001_foundation.txt"
         		],
         		persona: { }
     		}
 		],
 		answer_date: "2018-05-19T22:18:48.646Z",
 		answer_time: 5,
 		language: "en",
 		session: 
{
     		identity: 
{
         		type: "host",
         		name: "172.68.144.57_d97250c1",
         		anonymous: true
     		}
 		}
}

Screenshots of the issue

N/A

Would you like to work on the issue?

No

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jogendracommented, Jul 1, 2018

@prateekiiest @mariobehling yes, it can be closed since it is implemented on all the clients.

1reaction
sansyroxcommented, May 20, 2018

Thanks @imjog , I’ll try to implement it in susi_linux

Read more comments on GitHub >

github_iconTop Results From Across the Web

Renewal Applications - SUSI
Renewal Applications · Step 1 Apply · Step 2 SUSI Receive Response Letter from SUSI · Step 3 Receive your payment (if awarded)....
Read more >
Starting and stopping systemd services - SUSE Documentation
It is a best practice to use systemctl to stop services, rather than the ps command. A systemd service can include commands, processes, ......
Read more >
Fix SUSE update infrastructure registration on EC2 instances
I want to install or update packages on my Amazon Elastic Compute Cloud (Amazon EC2) SUSE instance. I'm unable to register my EC2...
Read more >
Study of the U.S. Institutes (SUSI) For Global Student Leaders
During the SUSI program and with support from staff at the Institutes, each participant designs and plans a Community Action Project that employs...
Read more >
SUSI.AI - fossasia
There are various kinds of gestures supported by android. Some of them are: ... Adding 3D Home Screen Quick Actions to SUSI iOS...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found