You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update the descriptions of set and get to indicate the possible
corner cases or rather semantic in such situations.
Update the readme also a bit. The auto save and restore mentioned
has nothing to do with the new data store mechanism.
Copy file name to clipboardExpand all lines: tools/server/public_simplechat/tooldb.mjs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ let dsget_meta = {
13
13
"type": "function",
14
14
"function": {
15
15
"name": "data_store_get",
16
-
"description": "Retrieve the value associated with a given key, in few seconds",
16
+
"description": "Retrieve the value associated with a given key, in few seconds using a web worker. If key doesnt exist, then __UNDEFINED__ is returned as the value.",
17
17
"parameters": {
18
18
"type": "object",
19
19
"properties": {
@@ -45,7 +45,7 @@ let dsset_meta = {
45
45
"type": "function",
46
46
"function": {
47
47
"name": "data_store_set",
48
-
"description": "Store a value under a given key, in few seconds using a web worker",
48
+
"description": "Store a value under a given key, in few seconds using a web worker. If the key already exists, its value will be updated to the new value",
0 commit comments