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 #641
The abnormal information is:
java.util.concurrent.CompletionException: java.lang.IllegalStateException: No structured output in message metadata. Key '_structured_output' not found.
at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:315) ~[na:na]
at java.base/java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:320) ~[na:na]
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run$$$capture(CompletableFuture.java:1770) ~[na:na]
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java) ~[na:na]
at java.base/java.util.concurrent.ThreadPerTaskExecutor$TaskRunner.run(ThreadPerTaskExecutor.java:314) ~[na:na]
at java.base/java.lang.VirtualThread.run(VirtualThread.java:329) ~[na:na]
The general reason is that the tool was not called, but the specific reason is still unclear
The text information returned by Ai is:There is no format here, all are the original information returned by Ai
Activity
if2018 commentedon Jan 23, 2026
OR
if2018 commentedon Jan 23, 2026
提示词信息为:
请识别图片中的车牌信息,具体要求如下:
AlbumenJ commentedon Jan 24, 2026
What is your expected structured output class?
if2018 commentedon Jan 26, 2026
It's this
@EqualsAndHashCode(callSuper = true)
@DaTa
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder
public class VehicleRoadDto extends BaseExtract {
/**
* 车牌号
/
@fieldlabel(value = "车牌号", preciseFormat = true)
private String vehicleNum;
/*
* 道路运输证编号
/
@fieldlabel("证件编号")
private String roadTrafficSn;
/*
* 有效期至
/
@fieldlabel("有效期至")
@ValidPeriod(toleranceDays = 5, type = ValidPeriod.PeriodCheckType.NOT_EXPIRED)
private String validityPeriod;
/*
* 发证日期
*/
@fieldlabel("发证日期")
@ValidPeriod(toleranceDays = 5)
private String issueDate;
}
AlbumenJ commentedon Jan 29, 2026
What is the
BaseExtract?if2018 commentedon Jan 29, 2026
/**
*/
@AllArgsConstructor
@NoArgsConstructor
@DaTa
@SuperBuilder
public class BaseExtract {
private String error;
}
wuaisong commentedon Apr 2, 2026
+1
LearningGp commentedon Apr 3, 2026
Could you provide the log files after reproducing the issue with debug logging enabled?
fix(agent): restore structured-output self-healing retry in fallback …
feat(core): Enhance reliability of structured output degradation path (…