AS AgentScopeAPI 手册 / API Reference

RAGFlowResponse

@JsonIgnoreProperties(ignoreUnknown = true) public class RAGFlowResponse
源码Source io/agentscope/core/rag/integration/ragflow/model/RAGFlowResponse.java:32–162

RAG Flow 响应,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.core.rag.integration.ragflow.model 包。核心成员包括 getCode、setCode、getMessage、setMessage、getData、setData。

RAGFlow API response model.

Note: The data field may be false, null, or an object depending on the API response. A custom deserializer (ResponseDataDeserializer) handles these cases.

嵌套类摘要Nested Class Summary

类Class类型Kind说明Description
ResponseData类class
响应数据,与模型服务通信并返回生成或向量化结果。
A class in io.agentscope.core.rag.integration.ragflow.model that talks to model services and returns generated or embedded output.
DocAgg类class
文档 Agg,与模型服务通信并返回生成或向量化结果。
Document aggregation information.

方法摘要Method Summary

方法Method说明Description
public Integer getCode()
获取 `getCode`。
Returns the code.
public void setCode(Integer code)
设置 `setCode`。
Sets the code.
public String getMessage()
获取消息。
Returns the message.
public void setMessage(String message)
设置消息。
Sets the message.
public ResponseData getData()
获取数据。
Returns the data.
public void setData(ResponseData data)
设置数据。
Sets the data.

方法详情Method Detail

getCode

public Integer getCode()

获取 getCode。

Returns the code.

返回Returns Integer
返回数值结果。Returns a numeric result.
源码Source io/agentscope/core/rag/integration/ragflow/model/RAGFlowResponse.java:45–47

setCode

public void setCode(Integer code)

设置 setCode。

Sets the code.

参数Parameters
名称Name类型Type说明Description
codeIntegercode(类型 `Integer`)。The code.
源码Source io/agentscope/core/rag/integration/ragflow/model/RAGFlowResponse.java:49–51

getMessage

public String getMessage()

获取消息。

Returns the message.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/rag/integration/ragflow/model/RAGFlowResponse.java:53–55

setMessage

public void setMessage(String message)

设置消息。

Sets the message.

参数Parameters
名称Name类型Type说明Description
messageString消息(类型 `String`)。The message.
源码Source io/agentscope/core/rag/integration/ragflow/model/RAGFlowResponse.java:57–59

getData

public ResponseData getData()

获取数据。

Returns the data.

返回Returns ResponseData
返回ResponseData。Returns response data.
源码Source io/agentscope/core/rag/integration/ragflow/model/RAGFlowResponse.java:61–63

setData

public void setData(ResponseData data)

设置数据。

Sets the data.

参数Parameters
名称Name类型Type说明Description
dataResponseData数据(类型 `ResponseData`)。The data.
源码Source io/agentscope/core/rag/integration/ragflow/model/RAGFlowResponse.java:65–67

嵌套类详情Nested Class Detail

ResponseData

@JsonIgnoreProperties(ignoreUnknown = true) public static class ResponseData

响应数据,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.core.rag.integration.ragflow.model 包。核心成员包括 getChunks、setChunks、getTotal、setTotal、getDocAggs、setDocAggs。

A class in io.agentscope.core.rag.integration.ragflow.model that talks to model services and returns generated or embedded output. Declared in io.agentscope.core.rag.integration.ragflow.model.

DocAgg

@JsonIgnoreProperties(ignoreUnknown = true) public static class DocAgg

文档 Agg,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.core.rag.integration.ragflow.model 包。核心成员包括 getDocId、setDocId、getDocName、setDocName、getCount、setCount。

Document aggregation information.

This class represents document-level aggregation data returned by RAGFlow API, showing how many chunks were retrieved from each document.

基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.