AS AgentScopeAPI 手册 / API Reference

DocumentInfo

@JsonIgnoreProperties(ignoreUnknown = true) public static class DocumentInfo
源码Source io/agentscope/core/rag/integration/dify/model/DifyResponse.java:346–378

文档信息,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.core.rag.integration.dify.model 包。核心成员包括 getId、setId、getDataSourceType、setDataSourceType、getName、setName。

Document information nested within a segment.

方法摘要Method Summary

方法Method说明Description
public String getId()
获取标识。
Returns the id.
public void setId(String id)
设置标识。
Sets the id.
public String getDataSourceType()
获取数据来源类型。
Returns the data source type.
public void setDataSourceType(String dataSourceType)
设置数据来源类型。
Sets the data source type.
public String getName()
获取名称。
Returns the name.
public void setName(String name)
设置名称。
Sets the name.

方法详情Method Detail

getId

public String getId()

获取标识。

Returns the id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/rag/integration/dify/model/DifyResponse.java:355–357

setId

public void setId(String id)

设置标识。

Sets the id.

参数Parameters
名称Name类型Type说明Description
idString标识(类型 `String`)。The id.
源码Source io/agentscope/core/rag/integration/dify/model/DifyResponse.java:359–361

getDataSourceType

public String getDataSourceType()

获取数据来源类型。

Returns the data source type.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/rag/integration/dify/model/DifyResponse.java:363–365

setDataSourceType

public void setDataSourceType(String dataSourceType)

设置数据来源类型。

Sets the data source type.

参数Parameters
名称Name类型Type说明Description
dataSourceTypeString数据来源类型(类型 `String`)。The data source type.
源码Source io/agentscope/core/rag/integration/dify/model/DifyResponse.java:367–369

getName

public String getName()

获取名称。

Returns the name.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/rag/integration/dify/model/DifyResponse.java:371–373

setName

public void setName(String name)

设置名称。

Sets the name.

参数Parameters
名称Name类型Type说明Description
nameString名称(类型 `String`)。The name.
源码Source io/agentscope/core/rag/integration/dify/model/DifyResponse.java:375–377
基于官方固定版本源码静态生成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.