add-reset-api-for-client (#1783)

This commit is contained in:
Anusha Kondam
2024-09-01 02:01:55 +05:30
committed by GitHub
parent 9d0932971d
commit ad233034ef
2 changed files with 38 additions and 6 deletions

View File

@@ -831,6 +831,25 @@ client.delete_users()
</CodeGroup>
### 4.8 Reset Client
<CodeGroup>
```python Python
client.reset()
```
```javascript JavaScript
client.reset()
.then(result => console.log(result))
.catch(error => console.error(error));
```
```json Output
{'message': 'Client reset successful. All users and memories deleted.'}
```
</CodeGroup>
Fun fact: You can also delete the memory using the `add()` method by passing a natural language command: