File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,15 @@ const contexts = [{
9898ApiAi .setContexts (contexts);
9999```
100100
101+ Reset all contexts for current session:
102+ ``` javascript
103+ ApiAi .resetContexts (result => {
104+ console .log (result);
105+ }, error => {
106+ console .log (error);
107+ });
108+ ```
109+
101110### Entities
102111Set [ UserEntities] ( https://api.ai/docs/reference/agent/userentities ) (will take affect on next startListening or queryRequest):
103112``` javascript
@@ -184,6 +193,7 @@ ApiAi.setConfiguration("4xxxxxxxe90xxxxxxxxc372", ApiAi.LANG_GERMAN);
184193| ` onListeningFinished ` | android | callback: ()=>{} | | |
185194| ` onAudioLevel ` | android | callback: (level: number)=>{} || |
186195| ` setContexts ` | both | array || |
196+ | ` resetContexts ` | both | resultCallback: (result: object)=>{} | errorCallback: (error: object)=>{} | |
187197| ` setEntities ` | both | array || |
188198
189199
You can’t perform that action at this time.
0 commit comments