feat(router): add Agent-based Router orchestration - #5379
Open
m199369309 wants to merge 8 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request introduces an independent, token-aware router for DeepSeek-V4 on Xinference, including a Supervisor orchestration controller, a desired-state scheduler, a runtime registry, and an Agent service for managing local router processes. It also adds example systemd service configurations, documentation, and comprehensive unit tests. The review feedback highlights several critical robustness improvements, such as preventing connection leaks in the chat completion proxy, ensuring process termination during Agent shutdown even if status reporting fails, and adding defensive guards against null values in capabilities and message tokenization.
This was referenced Aug 18, 2026
m199369309
force-pushed
the
feat/router-agent-orchestration
branch
3 times, most recently
from
August 18, 2026 18:08
dbc9a0b to
402744e
Compare
m199369309
force-pushed
the
feat/router-agent-orchestration
branch
from
August 21, 2026 16:02
fdb2f1b to
237e7dc
Compare
qinxuye
reviewed
Aug 21, 2026
m199369309
force-pushed
the
feat/router-agent-orchestration
branch
from
August 21, 2026 17:00
237e7dc to
44275a3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
xinference-router-agentservice with runtime process and tokenizer asset lifecycle managementDependency
Depends on #5376
Depends on #5377
This PR intentionally targets
main; maintainers can merge it after the dependencies above are merged.Validation
pre-commit run --files <all changed files>41 passed186 passed, 1 skipped; the process was interrupted after the repository's known async API teardown hang58 passed; the process was interrupted after the same teardown hangPlease review now if convenient, but merge only after the dependency PRs have landed.