Add async_mode default value to True

This commit is contained in:
parshvadaftari
2025-09-14 02:36:32 +05:30
parent 78ea40c291
commit c1b9da45aa
2 changed files with 7 additions and 5 deletions
+3 -3
View File
@@ -4889,7 +4889,7 @@
"title": "Output format",
"type": "string",
"nullable": true,
"default": "v1.0"
"default": "v1.1"
},
"custom_categories": {
"description": "A list of categories with category name and it's description.",
@@ -4916,7 +4916,7 @@
"description": "Whether to add the memory completely asynchronously.",
"title": "Async mode",
"type": "boolean",
"default": false
"default": true
},
"timestamp": {
"description": "The timestamp of the memory. Format: Unix timestamp",
@@ -5025,7 +5025,7 @@
"title": "Output format",
"type": "string",
"nullable": true,
"default": "v1.0",
"default": "v1.1",
"description": "The search method supports two output formats: `v1.0` (default) and `v1.1`. We recommend using `v1.1` as `v1.0` will be deprecated soon."
},
"org_id": {
+4 -2
View File
@@ -152,7 +152,8 @@ class MemoryClient:
)
kwargs.pop("output_format")
kwargs.pop("async_mode", None) # Remove async_mode as it's now default
# Force async_mode to True for platform users (not configurable)
kwargs["async_mode"] = True
# Force v1.1 format for all add operations
kwargs["output_format"] = "v1.1"
@@ -1007,7 +1008,8 @@ class AsyncMemoryClient:
)
kwargs.pop("output_format")
kwargs.pop("async_mode", None) # Remove async_mode as it's now default
# Force async_mode to True for platform users (not configurable)
kwargs["async_mode"] = True
# Force v1.1 format for all add operations
kwargs["output_format"] = "v1.1"