René's URL Explorer Experiment


Title: Preserve error codes and surface root cause in agentic RL errors by luozirong2025 · Pull Request #150 · dashscope/dashscope-sdk-python · GitHub

Open Graph Title: Preserve error codes and surface root cause in agentic RL errors by luozirong2025 · Pull Request #150 · dashscope/dashscope-sdk-python

X Title: Preserve error codes and surface root cause in agentic RL errors by luozirong2025 · Pull Request #150 · dashscope/dashscope-sdk-python

Description: python sdk for dashscope [model studio](https://www.alibabacloud.com/en/product/modelstudio?_p_lc=1) - Preserve error codes and surface root cause in agentic RL errors by luozirong2025 · Pull Request #150 · dashscope/dashscope-sdk-python

Open Graph Description: Re-raise exceptions that already carry an error_code instead of wrapping them, so the original code propagates to callers Add _format_cause() to AgenticRLError, RuntimeErrorWithCode and ValueErrorW...

X Description: Re-raise exceptions that already carry an error_code instead of wrapping them, so the original code propagates to callers Add _format_cause() to AgenticRLError, RuntimeErrorWithCode and ValueErrorW...

Opengraph URL: https://github.com/dashscope/dashscope-sdk-python/pull/150

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:b8d2b1a6-ecdf-4bf7-a862-de1b0fe27ba0
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA84C:114556:447A75:6279B0:6A61E853
html-safe-noncef6641a82e516038239191dbf719816d6e2719691955c3b19268d12cf456c0f2a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODRDOjExNDU1Njo0NDdBNzU6NjI3OUIwOjZBNjFFODUzIiwidmlzaXRvcl9pZCI6IjU2MTU5NTQzNTE2MDc2MzgwOTkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmace0c57b623a067d209af32de92798de74da36b0f8d48a830b3bb6d01eccbc92ad
hovercard-subject-tagpull_request:3910951441
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/dashscope/dashscope-sdk-python/150/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/9705a133a3e55d0dad2cb540de3d3a1fffece0da5e71bfe9a80e502caa5a18b3/dashscope/dashscope-sdk-python/pull/150
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9705a133a3e55d0dad2cb540de3d3a1fffece0da5e71bfe9a80e502caa5a18b3/dashscope/dashscope-sdk-python/pull/150
og:image:altRe-raise exceptions that already carry an error_code instead of wrapping them, so the original code propagates to callers Add _format_cause() to AgenticRLError, RuntimeErrorWithCode and ValueErrorW...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameluozirong2025
hostnamegithub.com
expected-hostnamegithub.com
Noneb2de8c74e5e61e893155ba46ee41bc66170c1644cb795adefa8386d490f7781c
turbo-cache-controlno-cache
go-importgithub.com/dashscope/dashscope-sdk-python git https://github.com/dashscope/dashscope-sdk-python.git
octolytics-dimension-user_id127009744
octolytics-dimension-user_logindashscope
octolytics-dimension-repository_id944303085
octolytics-dimension-repository_nwodashscope/dashscope-sdk-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id944303085
octolytics-dimension-repository_network_root_nwodashscope/dashscope-sdk-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
released1866027ded575df8a15c731dd8b9986c9483ceb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/dashscope/dashscope-sdk-python/pull/150#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdashscope%2Fdashscope-sdk-python%2Fpull%2F150
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdashscope%2Fdashscope-sdk-python%2Fpull%2F150
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=dashscope%2Fdashscope-sdk-python
Reloadhttps://github.com/dashscope/dashscope-sdk-python/pull/150
Reloadhttps://github.com/dashscope/dashscope-sdk-python/pull/150
Reloadhttps://github.com/dashscope/dashscope-sdk-python/pull/150
Please reload this pagehttps://github.com/dashscope/dashscope-sdk-python/pull/150
dashscope https://github.com/dashscope
dashscope-sdk-pythonhttps://github.com/dashscope/dashscope-sdk-python
Notifications https://github.com/login?return_to=%2Fdashscope%2Fdashscope-sdk-python
Fork 27 https://github.com/login?return_to=%2Fdashscope%2Fdashscope-sdk-python
Star 68 https://github.com/login?return_to=%2Fdashscope%2Fdashscope-sdk-python
Code https://github.com/dashscope/dashscope-sdk-python
Issues 0 https://github.com/dashscope/dashscope-sdk-python/issues
Pull requests 1 https://github.com/dashscope/dashscope-sdk-python/pulls
Actions https://github.com/dashscope/dashscope-sdk-python/actions
Projects https://github.com/dashscope/dashscope-sdk-python/projects
Security and quality 0 https://github.com/dashscope/dashscope-sdk-python/security
Insights https://github.com/dashscope/dashscope-sdk-python/pulse
Code https://github.com/dashscope/dashscope-sdk-python
Issues https://github.com/dashscope/dashscope-sdk-python/issues
Pull requests https://github.com/dashscope/dashscope-sdk-python/pulls
Actions https://github.com/dashscope/dashscope-sdk-python/actions
Projects https://github.com/dashscope/dashscope-sdk-python/projects
Security and quality https://github.com/dashscope/dashscope-sdk-python/security
Insights https://github.com/dashscope/dashscope-sdk-python/pulse
lzswebhttps://github.com/lzsweb
dashscope:mainhttps://github.com/dashscope/dashscope-sdk-python/tree/main
luozirong2025:mainhttps://github.com/luozirong2025/dashscope-sdk-python/tree/main
Conversationhttps://github.com/dashscope/dashscope-sdk-python/pull/150
Commits13 (13)https://github.com/dashscope/dashscope-sdk-python/pull/150/commits
Checkshttps://github.com/dashscope/dashscope-sdk-python/pull/150/checks
Files changedhttps://github.com/dashscope/dashscope-sdk-python/pull/150/files
Preserve error codes and surface root cause in agentic RL errorshttps://github.com/dashscope/dashscope-sdk-python/pull/150#top
lzswebhttps://github.com/lzsweb
dashscope:mainhttps://github.com/dashscope/dashscope-sdk-python/tree/main
luozirong2025:mainhttps://github.com/luozirong2025/dashscope-sdk-python/tree/main
https://github.com/luozirong2025
luozirong2025https://github.com/luozirong2025
Jun 22, 2026https://github.com/dashscope/dashscope-sdk-python/pull/150#issue-4715543145
Please reload this pagehttps://github.com/dashscope/dashscope-sdk-python/pull/150
June 8, 2026 12:09https://github.com/dashscope/dashscope-sdk-python/pull/150#commits-pushed-8595b42
[http] cancelhttps://github.com/dashscope/dashscope-sdk-python/pull/150/commits/8595b425a96611d48fe0881823f8d37ea3353f12
8595b42https://github.com/dashscope/dashscope-sdk-python/pull/150/commits/8595b425a96611d48fe0881823f8d37ea3353f12
[log] request idhttps://github.com/dashscope/dashscope-sdk-python/pull/150/commits/ed83a14ee992e6c9c2b555dfed283785d5b1a6d8
ed83a14https://github.com/dashscope/dashscope-sdk-python/pull/150/commits/ed83a14ee992e6c9c2b555dfed283785d5b1a6d8
https://github.com/claude
Preserve error codes and surface root cause in agentic RL errorshttps://github.com/dashscope/dashscope-sdk-python/pull/150/commits/b9518999c8266de058a443fc87a291e3f8108649
b951899https://github.com/dashscope/dashscope-sdk-python/pull/150/commits/b9518999c8266de058a443fc87a291e3f8108649
https://github.com/luozirong2025
Merge branch 'dashscope:main' into httphttps://github.com/dashscope/dashscope-sdk-python/pull/150/commits/309936ab94668ff705656ce94f59c5dfe5b410de
309936ahttps://github.com/dashscope/dashscope-sdk-python/pull/150/commits/309936ab94668ff705656ce94f59c5dfe5b410de
https://github.com/luozirong2025
https://github.com/apps/gemini-code-assist
Update dashscope/finetune/reinforcement/component/server/server.pyhttps://github.com/dashscope/dashscope-sdk-python/pull/150/commits/dad233b9cb1b5be0c0c00d5050066ff22da7a949
dad233bhttps://github.com/dashscope/dashscope-sdk-python/pull/150/commits/dad233b9cb1b5be0c0c00d5050066ff22da7a949
https://github.com/luozirong2025
https://github.com/apps/gemini-code-assist
Update dashscope/finetune/reinforcement/common/utils.pyhttps://github.com/dashscope/dashscope-sdk-python/pull/150/commits/64c70aa24712b4d7f78a9a74e02e5e9e86a88073
64c70aahttps://github.com/dashscope/dashscope-sdk-python/pull/150/commits/64c70aa24712b4d7f78a9a74e02e5e9e86a88073
https://github.com/luozirong2025
https://github.com/apps/gemini-code-assist
Update dashscope/finetune/reinforcement/component/server/server.pyhttps://github.com/dashscope/dashscope-sdk-python/pull/150/commits/cbbf03f8c712c116774911bc11bccc46c54417d5
cbbf03fhttps://github.com/dashscope/dashscope-sdk-python/pull/150/commits/cbbf03f8c712c116774911bc11bccc46c54417d5
https://github.com/apps/gemini-code-assist
gemini-code-assisthttps://github.com/apps/gemini-code-assist
Jun 22, 2026 https://github.com/dashscope/dashscope-sdk-python/pull/150#pullrequestreview-4543032042
View reviewed changes https://github.com/dashscope/dashscope-sdk-python/pull/150/files/b9518999c8266de058a443fc87a291e3f8108649
gemini-code-assisthttps://github.com/apps/gemini-code-assist
https://github.com/dashscope/dashscope-sdk-python/pull/150#pullrequestreview-4543032042
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
consumer version of Gemini Code Assist on GitHubhttps://developers.google.com/gemini-code-assist/docs/review-repo-code
Help Documentationhttps://developers.google.com/gemini-code-assist/docs/deprecations/consumer-code-review
Please reload this pagehttps://github.com/dashscope/dashscope-sdk-python/pull/150
dashscope/finetune/reinforcement/common/errors.pyhttps://github.com/dashscope/dashscope-sdk-python/pull/150/files/b9518999c8266de058a443fc87a291e3f8108649#diff-9369544efbd6d29a08650e858625421228ae20fc0729a244c1c9b9881dcca4ae
Please reload this pagehttps://github.com/dashscope/dashscope-sdk-python/pull/150
dashscope/finetune/reinforcement/common/errors.pyhttps://github.com/dashscope/dashscope-sdk-python/pull/150/files/b9518999c8266de058a443fc87a291e3f8108649#diff-9369544efbd6d29a08650e858625421228ae20fc0729a244c1c9b9881dcca4ae
Please reload this pagehttps://github.com/dashscope/dashscope-sdk-python/pull/150
dashscope/finetune/reinforcement/common/errors.pyhttps://github.com/dashscope/dashscope-sdk-python/pull/150/files/b9518999c8266de058a443fc87a291e3f8108649#diff-9369544efbd6d29a08650e858625421228ae20fc0729a244c1c9b9881dcca4ae
Please reload this pagehttps://github.com/dashscope/dashscope-sdk-python/pull/150
luozirong2025https://github.com/luozirong2025
June 22, 2026 20:24https://github.com/dashscope/dashscope-sdk-python/pull/150#commits-pushed-bbf2589
https://github.com/luozirong2025
Merge pull requesthttps://github.com/dashscope/dashscope-sdk-python/pull/150/commits/bbf25898db98dcc09ed88a3694d01f412cd9dccd
#1https://github.com/luozirong2025/dashscope-sdk-python/pull/1
from luozirong2025/httphttps://github.com/dashscope/dashscope-sdk-python/pull/150/commits/bbf25898db98dcc09ed88a3694d01f412cd9dccd
bbf2589https://github.com/dashscope/dashscope-sdk-python/pull/150/commits/bbf25898db98dcc09ed88a3694d01f412cd9dccd
https://github.com/claude
Fix race condition and DRY refactor in AgenticRLhttps://github.com/dashscope/dashscope-sdk-python/pull/150/commits/c925f24b84780652d4a2730555ab0d9c2593ffba
c925f24https://github.com/dashscope/dashscope-sdk-python/pull/150/commits/c925f24b84780652d4a2730555ab0d9c2593ffba
dashscope#152https://github.com/dashscope/dashscope-sdk-python/pull/152
https://github.com/claude
Fix test_register_functions_failure to match new error propagationhttps://github.com/dashscope/dashscope-sdk-python/pull/150/commits/7721808fa3e221086e5dd5592ccea7bfbd634034
7721808https://github.com/dashscope/dashscope-sdk-python/pull/150/commits/7721808fa3e221086e5dd5592ccea7bfbd634034
https://github.com/claude
Apply black formatting to error handling codehttps://github.com/dashscope/dashscope-sdk-python/pull/150/commits/fc04b36b5cdba817f261e3f53a618af3ef2edc7a
fc04b36https://github.com/dashscope/dashscope-sdk-python/pull/150/commits/fc04b36b5cdba817f261e3f53a618af3ef2edc7a
https://github.com/claude
Add cycle detection to root_cause traversal in error classeshttps://github.com/dashscope/dashscope-sdk-python/pull/150/commits/de1ae4595833aac350ef4c87890ddfdca860925e
de1ae45https://github.com/dashscope/dashscope-sdk-python/pull/150/commits/de1ae4595833aac350ef4c87890ddfdca860925e
dashscope#150https://github.com/dashscope/dashscope-sdk-python/pull/150
bump version to 1.25.24https://github.com/dashscope/dashscope-sdk-python/pull/150/commits/ebe2b6d9dbba7104b6067e55eb1e075481de8829
ebe2b6dhttps://github.com/dashscope/dashscope-sdk-python/pull/150/commits/ebe2b6d9dbba7104b6067e55eb1e075481de8829
https://github.com/lzsweb
lzswebhttps://github.com/lzsweb
78d8959https://github.com/dashscope/dashscope-sdk-python/commit/78d89597dd345b84609ef04cd13ed25979d82d22
Jun 23, 2026https://github.com/dashscope/dashscope-sdk-python/pull/150#event-27073910430
Please reload this pagehttps://github.com/dashscope/dashscope-sdk-python/pull/150
https://github.co/hiddenchars
https://github.com/dashscope/dashscope-sdk-python/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdashscope%2Fdashscope-sdk-python%2Fpull%2F150
https://github.com/apps/gemini-code-assist
gemini-code-assist[bot] https://github.com/apps/gemini-code-assist
https://github.com/dashscope/dashscope-sdk-python/pull/150/files/b9518999c8266de058a443fc87a291e3f8108649
Please reload this pagehttps://github.com/dashscope/dashscope-sdk-python/pull/150
https://github.com/luozirong2025
https://github.com/lzsweb
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.