Skip to content

Commit 3627834

Browse files
author
spoeck
committed
doc: add resetContexts
1 parent cb69b3d commit 3627834

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,15 @@ const contexts = [{
9898
ApiAi.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
102111
Set [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

0 commit comments

Comments
 (0)