Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ public interface DifyDatasetsClient {
* @author zhangriguang
* @date 2025-05-13
*/
String builtInMetadata(String datasetId, String action) throws IOException, DifyApiException;
SimpleResponse builtInMetadata(String datasetId, String action) throws IOException, DifyApiException;

/**
* 更新文档元数据
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,10 @@ public abstract class BaseWorkflowEvent extends BaseEvent {
*/
@JsonProperty("workflow_run_id")
private String workflowRunId;

/**
* 会话ID(对话型应用特有)
*/
@JsonProperty("conversation_id")
private String conversationId;
}
Original file line number Diff line number Diff line change
Expand Up @@ -433,10 +433,10 @@ private byte[] readAllBytes(InputStream inputStream) throws IOException {
* @date 2025-05-13
*/
@Override
public String builtInMetadata(String datasetId, String action) throws IOException, DifyApiException {
public SimpleResponse builtInMetadata(String datasetId, String action) throws IOException, DifyApiException {
log.debug("启用/禁用内置元数据: datasetId={}, action={}", datasetId, action);
String path = DATASETS_PATH + "/" + datasetId + METADATA_BUILT_IN_PATH + "/" + action;
return executePost(path, null, String.class);
return executePost(path, null, SimpleResponse.class);
}

/**
Expand Down