Pre-submission checklist | 提交前检查
Bug Description | 问题描述
The "Quick Start" examples in two docs under docs/cn/open_source/open_source_api/scheduler/ call MemOSClient methods that do not exist in the SDK (src/memos/api/client.py). Running the documented code raises AttributeError / TypeError.
Affected files:
docs/cn/open_source/open_source_api/scheduler/get_status.md
docs/cn/open_source/open_source_api/scheduler/ wait.md (note: the filename contains a leading space; suggest renaming it to wait.md as well)
How to Reproduce | 如何重现
-
Copy the "Quick Start" example from docs/cn/open_source/open_source_api/scheduler/get_status.md and run it:
from memos.api.client import MemOSClient
client = MemOSClient(api_key="...", base_url="...")
client.get_all_scheduler_status()
client.get_task_queue_status(user_id="dev_user_01")
client.get_task_status(user_id="dev_user_01", task_id="task_888999")
-
Copy the "Quick Start" example from docs/cn/open_source/open_source_api/scheduler/ wait.md and run it:
client.wait_until_idle(user_name="dev_user_01", timeout_seconds=300, poll_interval=2)
client.stream_scheduler_progress(user_name="dev_user_01", timeout_seconds=300)
-
Verify against the source: grep "def " src/memos/api/client.py shows none of these methods exist, and get_task_status (src/memos/api/client.py, around line 420) only accepts task_id.
Environment | 环境信息
- OS: any (doc/code mismatch, not platform-specific)
- Python: any version supported by the project
Additional Context | 其他信息
No response
Willingness to Implement | 实现意愿
Pre-submission checklist | 提交前检查
Bug Description | 问题描述
The "Quick Start" examples in two docs under
docs/cn/open_source/open_source_api/scheduler/callMemOSClientmethods that do not exist in the SDK (src/memos/api/client.py). Running the documented code raisesAttributeError/TypeError.Affected files:
docs/cn/open_source/open_source_api/scheduler/get_status.mddocs/cn/open_source/open_source_api/scheduler/ wait.md(note: the filename contains a leading space; suggest renaming it towait.mdas well)How to Reproduce | 如何重现
Copy the "Quick Start" example from
docs/cn/open_source/open_source_api/scheduler/get_status.mdand run it:Copy the "Quick Start" example from
docs/cn/open_source/open_source_api/scheduler/ wait.mdand run it:Verify against the source:
grep "def " src/memos/api/client.pyshows none of these methods exist, andget_task_status(src/memos/api/client.py, around line 420) only acceptstask_id.Environment | 环境信息
Additional Context | 其他信息
No response
Willingness to Implement | 实现意愿