Skip to content

fix(dashscope): enhance support for native structured output in DashScope models#1935

Merged
oss-maintainer merged 4 commits into
agentscope-ai:mainfrom
chickenlj:fix-structuredoutput
Jul 1, 2026
Merged

fix(dashscope): enhance support for native structured output in DashScope models#1935
oss-maintainer merged 4 commits into
agentscope-ai:mainfrom
chickenlj:fix-structuredoutput

Conversation

@chickenlj

Copy link
Copy Markdown
Collaborator

related to #1865,#1743,#1640

@chickenlj chickenlj requested review from a team and Copilot June 26, 2026 08:29

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

@itxaiohanglover

Copy link
Copy Markdown
Contributor

Good robustness fix! The fallback from native to synthetic structured call prevents hard failures. The context cleanup on error (removing added messages, resetting nativeResponseFormat) is important for not corrupting state on retry.

# Conflicts:
#	agentscope-extensions/agentscope-extensions-model/agentscope-extensions-model-dashscope/src/main/java/io/agentscope/extensions/model/dashscope/formatter/DashScopeToolsHelper.java
@oss-maintainer oss-maintainer merged commit 4b5d429 into agentscope-ai:main Jul 1, 2026
5 of 6 checks passed
@chickenlj chickenlj deleted the fix-structuredoutput branch July 1, 2026 12:23
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.

4 participants