Skip to content

Commit 9473156

Browse files
committed
feat: add missing fields to DetailedDocumentResponse (#160)
Add doc_type, doc_metadata, summary_index_status, and need_summary fields to align with the latest Dify API response for document detail endpoint.
1 parent 18848bf commit 9473156

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

src/main/java/io/github/imfangs/dify/client/model/datasets/DetailedDocumentResponse.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,18 @@ public class DetailedDocumentResponse {
167167
@JsonProperty("display_status")
168168
private String displayStatus;
169169

170+
/**
171+
* 文档类型
172+
*/
173+
@JsonProperty("doc_type")
174+
private String docType;
175+
176+
/**
177+
* 文档元数据详情列表
178+
*/
179+
@JsonProperty("doc_metadata")
180+
private List<Map<String, Object>> docMetadata;
181+
170182
/**
171183
* 文档形式
172184
*/
@@ -179,6 +191,18 @@ public class DetailedDocumentResponse {
179191
@JsonProperty("doc_language")
180192
private String docLanguage;
181193

194+
/**
195+
* 摘要索引状态
196+
*/
197+
@JsonProperty("summary_index_status")
198+
private String summaryIndexStatus;
199+
200+
/**
201+
* 是否需要摘要
202+
*/
203+
@JsonProperty("need_summary")
204+
private Boolean needSummary;
205+
182206
/**
183207
* 处理规则信息
184208
*/

0 commit comments

Comments
 (0)