You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]:结构化输出有问题,报No structured output in message metadata. Key '_structured_output' not found. #1699
Activity
mytu-lub commentedon Jun 10, 2026
beyond0630 commentedon Jun 24, 2026
me too,
qingtianbuyu commentedon Jun 28, 2026
是不是用了flash 模型?
qy8502 commentedon Jul 1, 2026
模型能力有限未能正确输出结构化数据,这可以理解,不过能否自动重试,等到getStructuredData才报错,还需要自己编写重试逻辑。
qingtianbuyu commentedon Jul 1, 2026
我遇到过,临时建议以下解决方案
json这个包裹beyond0630 commentedon Jul 2, 2026
@qingtianbuyu 设置了 responseFormat 也还有问题
qingtianbuyu commentedon Jul 2, 2026
@beyond0630 这个是版本的问题,你设置了参数没生生效是因为agentscope java 源码里 DashScopeToolsHelper.applyOptions 少了下面的处理,得等官方修复。不过你可以把提示词贴出来看看,因为提示词的json示例给的对,只要不是flash 模型应该能推理出里
ResponseFormat responseFormat = getOption(options, defaultOptions, GenerateOptions::getResponseFormat);
if (responseFormat != null) {
params.setResponseFormat(responseFormat);
}
beyond0630 commentedon Jul 3, 2026
与 V1 对比, V2 少了输出的结构信息

qlprimer commentedon Jul 9, 2026
我也触发了这个BUG,从studio中看输出内容看返回的metadata中根本没有返回_structured_output结构。还好在content中返回了相应提取的json字符串,我不得不使用JSON.parseObject 兜底转化。
feat(core): Enhance reliability of structured output degradation path (…