Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
5cea230
refactor(v2): Refactor configuration and session management modules
Oct 21, 2026
1070c02
fix: add missing dashscope._shared module
Oct 21, 2026
f7d05bf
style: wrap comment and docstring lines flagged by flake8 E501
Oct 23, 2026
eff77e8
refactor(shared): update shared module docs and migrate subpackage im…
Oct 23, 2026
cc84887
fix(tests): fix string formatting issue in tests
Oct 23, 2026
64daf22
feat(v2): back transport and file I/O errors with catalog sdk.* entries
Oct 23, 2026
ba7aabd
feat(v2): sync error registry to cd873b6 and wire sdk.ws.* errors
Oct 23, 2026
3fe0475
refactor(v2): unify AgentStudio and AgenticRL errors
Oct 26, 2026
39f4852
Merge branch 'main' into dev/v2-change
Oct 26, 2026
dea0cc2
refactor(v2): promote reinforcement public import path
Oct 26, 2026
0bf8a7f
refactor(v2): promote SDK implementation to package root
Oct 26, 2026
712eaa4
refactor(v2): group applications and preserve legacy imports
Oct 26, 2026
39163fe
chore(release): prepare 2.0.3
Oct 26, 2026
fb11b89
docs: add internal SDK documentation
Oct 26, 2026
180283f
Merge branch 'main' into dev/v2-change
Oct 26, 2026
34bc6c8
Merge branch 'main' into dev/v2-change
Oct 27, 2026
f166d3d
refactor(error): add deprecation markers to 1.x error classes
Oct 27, 2026
4d401a0
docs(acli): update expert guidance for SDK 2.0
Oct 27, 2026
ba49d4d
Merge remote-tracking branch 'origin/dev/v2-change' into dev/v2-change
Oct 27, 2026
302a65d
ci: limit unit tests to Python 3.11-3.13
Oct 27, 2026
9bfbcf5
docs: remove internal SDK documentation
Oct 27, 2026
6f378c6
docs(acli): update expert guidance for SDK 2.0
Oct 27, 2026
d7e45f5
Merge remote-tracking branch 'origin/dev/v2-change' into dev/v2-change
Oct 27, 2026
49b34b5
ci: limit unit tests to Python 3.11-3.13
Oct 27, 2026
87a2abc
Merge remote-tracking branch 'origin/dev/v2-change' into dev/v2-change
Oct 27, 2026
38f221a
refactor(errors): unify error handling base classes and adjust Agenti…
Oct 27, 2026
625069f
feat(acli): sync agenticCLI runtime and tool updates
Oct 27, 2026
b27c5f1
test(acli): update audio import contract
Oct 27, 2026
38b5859
fix(legacy): fix 1.x legacy alias module import issues
Oct 27, 2026
0cb3454
refactor(compat): preserve 1.x application interfaces
Oct 27, 2026
1861e2b
fix(transport): harden HTTP client configuration and retries
Oct 27, 2026
3b5caaa
fix(ws): bound task buffers and normalize timeouts
Oct 27, 2026
f8d0f30
feat(audio): add async HTTP audio resources
Oct 27, 2026
f4c7569
fix(protocols): preserve Anthropic thinking blocks
Oct 27, 2026
4f48a3d
fix(ci): align legacy aliases and formatting
Oct 27, 2026
2710cc7
feat(anthropic): support Anthropic streaming thinking blocks and reda…
Oct 28, 2026
d95b338
refactor(agentic-rl): use relative internal imports
Oct 29, 2026
1015c39
fix(errors): classify response failures as internal errors
Oct 29, 2026
fd5e010
refactor(audio): refactor async client bridging in audio module
Oct 29, 2026
25c259d
fix(async): harden blocking upload bridge
Oct 29, 2026
9979f2e
fix(errors): normalize response and websocket failures
Oct 29, 2026
a38d1a4
fix(compat): preserve lazy modules and refresh quickstart
Oct 29, 2026
acdfa41
feat(common): add user-agent header support
Oct 29, 2026
e8abe32
refactor(audio): remove preview warnings and refactor voice customiza…
Oct 29, 2026
8758133
fix(packaging): clean stale modules before wheel build
Oct 30, 2026
7a007c2
feat(finetune): optimize function dependency layer creation and statu…
Oct 30, 2026
89916e9
docs(readme): update documentation with new feature groups and config…
Oct 30, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
54 changes: 49 additions & 5 deletions .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,14 @@ on:
- 'main'

jobs:
test:
current:
if: ${{ !(github.event_name == 'pull_request' && startsWith(github.event.pull_request.title, 'docs:')) }}

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ '3.9', '3.12', '3.13', '3.14' ]

python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13' ]

steps:
- name: Checkout repository
Expand Down Expand Up @@ -55,10 +54,55 @@ jobs:
run: |
python -m pip list --format=columns

- name: Run tests with coverage
- name: Run current tests with coverage
run: |
coverage run -m pytest tests/unit
coverage run -m pytest tests --ignore=tests/legacy_1x

- name: Generate coverage report
run: |
coverage report -m

legacy:
if: ${{ !(github.event_name == 'pull_request' && startsWith(github.event.pull_request.title, 'docs:')) }}

runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13' ]

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Cache pip dependencies
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pip-

- name: Update setuptools
run: |
pip install --upgrade pip
pip install setuptools==68.2.2 wheel==0.41.2

- name: Set PYTHONPATH
run: |
echo "PYTHONPATH=$PYTHONPATH:${{ github.workspace }}/src" >> $GITHUB_ENV

- name: Install dependencies
run: |
export PIP_DEFAULT_TIMEOUT=300
pip install -r requirements.txt
pip install -r requirements-test.txt

- name: Run archived legacy tests
run: |
python -m pytest tests/legacy_1x
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -144,5 +144,5 @@ cython_debug/
# Local design/analysis docs — kept out of the public repo
/md/

# Local PyPI investigation tooling; the CI guard lives in tests/unit/.
# Local PyPI investigation tooling; the CI guard lives in tests/legacy_1x/unit/.
/scripts/
39 changes: 21 additions & 18 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,36 @@ repos:
rev: v4.3.0
hooks:
- id: check-ast
exclude: ^tests/legacy/
exclude: ^tests/legacy_1x/legacy/
- id: sort-simple-yaml
exclude: ^tests/legacy/
exclude: ^tests/legacy_1x/legacy/
- id: check-yaml
exclude: |
(?x)^(
meta.yaml
| tests/legacy/
| tests/legacy_1x/legacy/
)$
- id: check-xml
exclude: ^tests/legacy/
exclude: ^tests/legacy_1x/legacy/
- id: check-toml
exclude: ^tests/legacy/
exclude: ^tests/legacy_1x/legacy/
- id: check-docstring-first
exclude: ^tests/legacy/
exclude: ^tests/legacy_1x/legacy/
- id: check-json
exclude: ^tests/legacy/
exclude: ^tests/legacy_1x/legacy/
- id: fix-encoding-pragma
exclude: ^tests/legacy/
exclude: ^tests/legacy_1x/legacy/
- id: detect-private-key
exclude: ^tests/legacy/
exclude: ^tests/legacy_1x/legacy/
- id: trailing-whitespace
exclude: ^tests/legacy/
exclude: ^tests/legacy_1x/legacy/
- repo: https://github.com/asottile/add-trailing-comma
rev: v3.1.0
hooks:
- id: add-trailing-comma
# examples/01_atomic_capabilities/audio is ported verbatim from the sibling repo's
# samples/ tree, whose hooks exempt samples/.
exclude: ^(tests/legacy|examples/01_atomic_capabilities/audio)/
exclude: ^(tests/legacy_1x/legacy|examples/01_atomic_capabilities/audio)/
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.7.0
hooks:
Expand All @@ -45,7 +45,7 @@ repos:
pb2\.py$
| grpc\.py$
| ^docs
| ^tests/legacy/
| ^tests/legacy_1x/legacy/
| ^examples/01_atomic_capabilities/audio/
| \.html$
| \.pyi$
Expand All @@ -67,13 +67,13 @@ repos:
hooks:
- id: black
args: [ --line-length=79 ]
exclude: ^(tests/legacy|examples/01_atomic_capabilities/audio)/
exclude: ^(tests/legacy_1x/legacy|examples/01_atomic_capabilities/audio)/
- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
hooks:
- id: flake8
args: [ "--extend-ignore=E203"]
exclude: ^(tests/legacy|examples/01_atomic_capabilities/audio)/
exclude: ^(tests/legacy_1x/legacy|examples/01_atomic_capabilities/audio)/
- repo: https://github.com/pylint-dev/pylint
rev: v3.0.2
hooks:
Expand All @@ -97,6 +97,7 @@ repos:
--disable=R0913,
--disable=E0401,
--disable=E1101,
--disable=E0611, # Runtime meta-path aliases are invisible to astroid
--disable=C0415,
--disable=W0603,
--disable=R1705,
Expand All @@ -122,6 +123,7 @@ repos:
--disable=C0114, # Disable missing module docstring for quick dev
--disable=C0115, # Disable missing class docstring for quick dev
--disable=C0116, # Disable missing function or method docstring for quick dev
--disable=E0603, # Absolute self-imports and lazy exports in reinforcement
]
# Tests get their own entry (pylint 3.0.2 discovers rcfiles from the
# invocation CWD, not per linted-file directory, so a tests/pylintrc
Expand All @@ -132,7 +134,7 @@ repos:
- id: pylint
name: pylint (tests)
files: ^tests/
exclude: ^tests/legacy/
exclude: ^tests/legacy_1x/legacy/
args: [
--disable=W0511,
--disable=W0718,
Expand All @@ -141,6 +143,7 @@ repos:
--disable=R0913,
--disable=E0401,
--disable=E1101,
--disable=E0611, # Runtime meta-path aliases are invisible to astroid
--disable=C0415,
--disable=W0603,
--disable=R1705,
Expand Down Expand Up @@ -190,19 +193,19 @@ repos:
hooks:
- id: eslint
files: \.(js|jsx)$
exclude: '(.*js_third_party.*|^tests/legacy/)'
exclude: '(.*js_third_party.*|^tests/legacy_1x/legacy/)'
args: [ '--fix' ]
- repo: https://github.com/thibaudcolas/pre-commit-stylelint
rev: v14.4.0
hooks:
- id: stylelint
files: \.(css)$
exclude: '(.*css_third_party.*|^tests/legacy/)'
exclude: '(.*css_third_party.*|^tests/legacy_1x/legacy/)'
args: [ '--fix' ]
- repo: https://github.com/pre-commit/mirrors-prettier
rev: 'v3.0.0'
hooks:
- id: prettier
additional_dependencies: [ 'prettier@3.0.0' ]
files: \.(tsx?)$
exclude: ^tests/legacy/
exclude: ^tests/legacy_1x/legacy/
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include dashscope/resources/qwen.tiktoken
include dashscope/legacy_1x/tokenizers/qwen.tiktoken
include dashscope/py.typed
include dashscope/__init__.pyi
include NOTICE
Expand Down
Loading
Loading