Skip to content

[Doc] Document Conductor Python client API - #4606

Merged
ykwd merged 1 commit into
kvcache-ai:mainfrom
Chase-Rong:split/conductor-python-api
Oct 13, 2026
Merged

ykwd merged 1 commit into
kvcache-ai:mainfrom
Chase-Rong:split/conductor-python-api

Conversation

@Chase-Rong

@Chase-Rong Chase-Rong commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Add a Python API reference for ConductorClient, introduced in #4469, and link it from the Python API index and
sidebar.

  • Document installation requirements, service startup, client lifecycle, and all eight public methods.
  • Describe registration fields, hash profiles, return values, and error handling.
  • Explain cumulative cache-tier counts, string DP-rank keys, zero-match results, and SGLang partial-block/bigram
    semantics.
  • Align the documented device field with the naming unified in [Conductor] Unify GPU/NPU cache tier as device #4588.

Module

  • Transfer Engine (mooncake-transfer-engine)
  • Mooncake Store (mooncake-store)
  • Mooncake Conductor (mooncake-conductor)
  • Reshard (mooncake-reshard)
  • Mooncake EP (mooncake-ep)
  • Mooncake PG (mooncake-pg)
  • Integration (mooncake-integration)
  • P2P Store (mooncake-p2p-store)
  • Python Wheel (mooncake-wheel)
  • Common (mooncake-common)
  • Mooncake RL (mooncake-rl)
  • CI/CD
  • Docs
  • Other

Type of Change

  • Bug fix
  • New feature
  • Refactor
  • Breaking change
  • Documentation update
  • Performance improvement
  • Other

How Has This Been Tested?

Test commands:

make -C docs clean \
  SPHINXBUILD=/home/lolopop/HiSchedule/Mooncake/docs/.venv/bin/sphinx-build
make -C docs html \
  SPHINXBUILD=/home/lolopop/HiSchedule/Mooncake/docs/.venv/bin/sphinx-build

uv tool run --offline pre-commit run --files \
  docs/source/api-reference/python/conductor.md \
  docs/source/api-reference/python/index.md

git diff --check

Test results:

  • Unit tests pass
  • Integration tests pass (if applicable)
  • Manual testing done (describe below)

The clean Sphinx HTML build, applicable pre-commit hooks, and whitespace check passed. Generated HTML checks verified
all eight method anchors, the Python index entry, sidebar navigation, and the HTTP API link. Python example and
signature syntax checks also passed.

Live-service examples were not executed. Review of base commit 8c9af6c9 identified an existing Python-extension
build failure: mooncake-integration/conductor/conductor_py.cpp still references m.npu and hit.npu, while #4588
renamed those C++ members to device. A compiler syntax check reproduced both errors. This docs-only PR does not fix
that implementation issue.

Checklist

  • I have performed a self-review of my own code
  • I have formatted my code using ./scripts/code_format.sh
  • I have run pre-commit on the files changed in this PR and all hooks pass
  • I have updated the documentation (if applicable)
  • I have added tests to prove my changes are effective
  • For changes >500 LOC: I have filed an RFC issue

C/C++ formatting and new runtime tests are not applicable to this documentation-only change. The diff adds 372 lines
across two Markdown files and does not require an RFC.

AI Assistance Disclosure

  • No AI tools were used
  • AI tools were used (specify below)

@github-actions github-actions Bot added documentation Improvements or additions to documentation run-ci labels Oct 12, 2026

@Icedcoco Icedcoco left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ykwd
ykwd merged commit 3d72fef into kvcache-ai:main Oct 13, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation run-ci

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants