Skip to content

docs: fix scheduler API examples to match server endpoints#2113

Merged
CarltonXiang merged 1 commit into
MemTensor:dev-v2.0.24from
shinetata:docs/fix-scheduler-api-2083
Jul 16, 2026
Merged

docs: fix scheduler API examples to match server endpoints#2113
CarltonXiang merged 1 commit into
MemTensor:dev-v2.0.24from
shinetata:docs/fix-scheduler-api-2083

Conversation

@shinetata

Copy link
Copy Markdown
Collaborator

Rewrite scheduler Quick Start examples to call the real /product/scheduler REST endpoints with requests instead of non-existent MemOSClient methods; align response fields with the actual handler output; rename the mis-named wait.md. Closes #2083

Rewrite scheduler Quick Start examples to call the real /product/scheduler REST endpoints with requests instead of non-existent MemOSClient methods; align response fields with the actual handler output; rename the mis-named ' wait.md' to 'wait.md'.

Closes MemTensor#2083

Co-authored-by: Cursor <cursoragent@cursor.com>
@Memtensor-AI Memtensor-AI added area:docs 文档、示例 status:in-progress Someone or AI is working on it | 人工或 AI 正在处理 labels Jul 15, 2026
@Memtensor-AI

Copy link
Copy Markdown
Collaborator

🤖 Open Code Review

Target: PR #2113
Task: 88e8ee61d414a88f
Base: dev-v2.0.24
Head: docs/fix-scheduler-api-2083

OpenCodeReview: No supported files changed.

Generated by cloud-assistant via Open Code Review.

@Memtensor-AI

Copy link
Copy Markdown
Collaborator

✅ Automated Test Results: PASSED

All tests passed (1/1 executed). memos_github_open_source/smoke: 1/1. Duration: 1s

Branch: docs/fix-scheduler-api-2083

@Memtensor-AI Memtensor-AI added status:ready Ready for implementation; waiting for assignee or AI dispatch | 可进入实现,等待认领或派发 and removed status:in-progress Someone or AI is working on it | 人工或 AI 正在处理 labels Jul 15, 2026
@CarltonXiang
CarltonXiang merged commit a000a1c into MemTensor:dev-v2.0.24 Jul 16, 2026
18 checks passed
CarltonXiang pushed a commit that referenced this pull request Jul 19, 2026
* feat(api): align OpenMem v1 SDK with cloud API

* feat(api): align OpenMem v1 SDK with cloud API

* fix(memos-local): include json hint in user messages (#1756)

Co-authored-by: shinetata <149466187+shinetata@users.noreply.github.com>

* docs: fix scheduler API examples to match server endpoints (#2113)

Rewrite scheduler Quick Start examples to call the real /product/scheduler REST endpoints with requests instead of non-existent MemOSClient methods; align response fields with the actual handler output; rename the mis-named ' wait.md' to 'wait.md'.

Closes #2083

Co-authored-by: sunqi <sunqi@memtensor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(api): show structured add example in /docs for /product/add (#2112)

fix(api): show structured add example in /docs (messages not string)

Swagger UI rendered APIADDRequest.messages as "string" because it picks the
leading `str` branch of the `str | MessageList | RawMessageList` union when
generating the example. Add a model-level json_schema_extra example so /docs
shows a copy-paste-ready payload with a structured messages list.

Schema-only change: field types, validation and runtime behaviour are
unchanged, so the core add pipeline is unaffected.

Closes #1505

Co-authored-by: sunqi <sunqi@memtensor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(memos-local-plugin): revert half-merged MemosHttpClient usages (#2096)

The hermes adapter's __init__.py imported MemosHttpClient from
bridge_client, but the class was never committed — every plugin python
test failed at collection and any real Hermes host loading memos_provider
hit ImportError at module load. The phantom usages arrived via the
pr/may27-fixes merge (0398e0e) as a half-committed HTTP-bridge feature.

Revert the four usages and the HTTP-first branches in initialize /
_reconnect_bridge, remove the _connect_http_bridge helper and the now-
unused probe_viewer_status / startup_lock_active imports (their
definitions in daemon_manager.py are untouched for a future HTTP PR).
Add test_module_imports_cleanly regression test asserting
MemTensorProvider / MemosBridgeClient / BridgeError are present on the
real contract surfaces and MemosHttpClient is absent on both
memos_provider and bridge_client, so this class of import-level
breakage cannot silently return.

Restores the adapter to stdio-only behavior. Net diff: 57 additions /
54 deletions across the adapter plus the regression test.

Fixes #2096

* fix: configure logging once per process

* fix: close scheduler resources on API shutdown

* fix: configure logging once per process

Avoid re-running dictConfig on every get_logger call, since repeated configuration can close and replace active handlers while background threads are emitting records. Keep logging configuration process-local and reconfigure only after a PID change.

* fix: close scheduler resources via API lifespan

Use FastAPI lifespan cleanup to stop scheduler and RabbitMQ resources before logging handlers are torn down during worker or pod shutdown.

* feat(api):update SDK version number

---------

Co-authored-by: dingliang <2650876010@qq.com>
Co-authored-by: de1ty <7804799+de1tydev@users.noreply.github.com>
Co-authored-by: shinetata <149466187+shinetata@users.noreply.github.com>
Co-authored-by: sunqi <sunqi@memtensor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Memtensor-AI <project@memtensor.cn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:docs 文档、示例 status:ready Ready for implementation; waiting for assignee or AI dispatch | 可进入实现,等待认领或派发

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants