👥 User System
The Cat provides a basic user management system that allows having separated memories for each user. The user system affects only the working memory and the episodic memory. The other memories are shared among users.
More in details, the websocket client indicates the current user_id
by calling the ws://localhost:1865/ws/{user_id}
endpoint.
The Cat uses such user_id
to retrieve the user's working memory and to store the user's conversation (using the user_id
as a metadatum).
Note
Please, note that the user management system works only when using a custom client.
Its usage is not intended from the admin interface,
which, by default, uses user_id = "user"
.
Example
The Cheshire Cat provides two API clients, written in Python and Typescript, that allow exploiting the user management system.
Example
Setting the user_id
from a custom client: