Skip to content

refactor(deps): move RL server/observability deps to agentic-rl extra - #250

Merged
luk384090-cloud merged 3 commits into
mainfrom
refactor/agentic-rl-extras
Dec 1, 2026
Merged

luk384090-cloud merged 3 commits into
mainfrom
refactor/agentic-rl-extras

Conversation

@lzsweb

@lzsweb lzsweb commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • fastapi, uvicorn, opentelemetry-sdk are only used by the Agentic RL function server (component/server/server.py) and observability (component/observability/). Move them from core requirements into a new dashscope[agentic-rl] extra, shrinking the dependency tree for inference-only users and reducing resolution conflicts in locked environments (CI locks, internal mirrors).
  • The server raises an ImportError with install guidance (pip install 'dashscope[agentic-rl]') when the extra is missing; OTel tracing already degrades gracefully via try/except, and uvicorn was already lazily imported.
  • RL job submission and reward/rollout authoring (pydantic/tenacity/PyYAML) stay in the core install — unchanged.
  • Docs synced: README (en/zh) extras table, docs index (en/zh), agentic-rl reference pages (en/zh); requirements-test.txt installs the extra's deps for the RL tests.

Verified

  • Clean base install: authoring API imports fine, fastapi/uvicorn/otel not loaded, server import raises the guided ImportError.
  • Clean install with .[agentic-rl]: server builds the FastAPI app normally.
  • tests/test_agentic_rl_server_hardening.py, test_packaging_metadata.py, test_docs_reference.py: 43 passed, 1 skipped.
  • python tools/gen_reference.py --check passes.

Test plan

  • CI unit tests (3.9/3.11/3.13) and legacy suite green
  • Docs build green
  • Spot-check pip install dashscope (no extra) in a fresh venv: import dashscope + RL authoring API work

zhansheng.lzs and others added 3 commits November 30, 2026 19:20
fastapi, uvicorn and opentelemetry-sdk are only used by the Agentic RL
function server and observability. Move them out of the core install
into a new [agentic-rl] extra so inference-only users get a smaller
dependency tree with fewer resolution conflicts in locked environments.
The server raises an ImportError with install guidance when the extra
is missing; OTel tracing already degrades gracefully.
@luk384090-cloud
luk384090-cloud merged commit 4324225 into main Dec 1, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants