AS AgentScopeAPI 手册 / API Reference

ResponseData

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

响应数据,与模型服务通信并返回生成或向量化结果。位于 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.

方法摘要Method Summary

方法Method说明Description
public List<RAGFlowChunk> getChunks()
获取 `getChunks`。
Returns the chunks.
public void setChunks(List<RAGFlowChunk> chunks)
设置 `setChunks`。
Sets the chunks.
public Integer getTotal()
获取总数。
Returns the total.
public void setTotal(Integer total)
设置总数。
Sets the total.
public List<DocAgg> getDocAggs()
获取 `getDocAggs`。
Returns the doc aggs.
public void setDocAggs(List<DocAgg> docAggs)
设置 `setDocAggs`。
Sets the doc aggs.

方法详情Method Detail

getChunks

public List<RAGFlowChunk> getChunks()

获取 getChunks。

Returns the chunks.

返回Returns List<RAGFlowChunk>
返回列出。Returns list.
源码Source io/agentscope/core/rag/integration/ragflow/model/RAGFlowResponse.java:81–83

setChunks

public void setChunks(List<RAGFlowChunk> chunks)

设置 setChunks。

Sets the chunks.

参数Parameters
名称Name类型Type说明Description
chunksList<RAGFlowChunk>分块列表(类型 `List`)。The chunks.
源码Source io/agentscope/core/rag/integration/ragflow/model/RAGFlowResponse.java:85–87

getTotal

public Integer getTotal()

获取总数。

Returns the total.

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

setTotal

public void setTotal(Integer total)

设置总数。

Sets the total.

参数Parameters
名称Name类型Type说明Description
totalInteger总数(类型 `Integer`)。The total.
源码Source io/agentscope/core/rag/integration/ragflow/model/RAGFlowResponse.java:93–95

getDocAggs

public List<DocAgg> getDocAggs()

获取 getDocAggs。

Returns the doc aggs.

返回Returns List<DocAgg>
返回列出。Returns list.
源码Source io/agentscope/core/rag/integration/ragflow/model/RAGFlowResponse.java:97–99

setDocAggs

public void setDocAggs(List<DocAgg> docAggs)

设置 setDocAggs。

Sets the doc aggs.

参数Parameters
名称Name类型Type说明Description
docAggsList<DocAgg>文档 Aggs(类型 `List`)。The doc aggs.
源码Source io/agentscope/core/rag/integration/ragflow/model/RAGFlowResponse.java:101–103
基于官方固定版本源码静态生成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.