Segment
@JsonIgnoreProperties(ignoreUnknown = true) public static class Segment
io/agentscope/core/rag/integration/dify/model/DifyResponse.java:110–341Segment,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.core.rag.integration.dify.model 包。核心成员包括 getId、setId、getDocumentId、setDocumentId、getContent、setContent。
Segment information from a retrieved document chunk.
方法摘要Method Summary
方法详情Method Detail
getId
public String getId()
获取标识。
Returns the id.
Stringio/agentscope/core/rag/integration/dify/model/DifyResponse.java:166–168setId
public void setId(String id)
设置标识。
Sets the id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
id | String | 标识(类型 `String`)。The id. |
io/agentscope/core/rag/integration/dify/model/DifyResponse.java:170–172getDocumentId
public String getDocumentId()
获取文档标识。
Returns the document id.
Stringio/agentscope/core/rag/integration/dify/model/DifyResponse.java:174–176setDocumentId
public void setDocumentId(String documentId)
设置文档标识。
Sets the document id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
documentId | String | 文档标识(类型 `String`)。The document id. |
io/agentscope/core/rag/integration/dify/model/DifyResponse.java:178–180getContent
public String getContent()
获取内容。
Returns the content.
Stringio/agentscope/core/rag/integration/dify/model/DifyResponse.java:182–184setContent
public void setContent(String content)
设置内容。
Sets the content.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
content | String | 内容(类型 `String`)。The content. |
io/agentscope/core/rag/integration/dify/model/DifyResponse.java:186–188getAnswer
public String getAnswer()
获取答案。
Returns the answer.
Stringio/agentscope/core/rag/integration/dify/model/DifyResponse.java:190–192setAnswer
public void setAnswer(String answer)
设置答案。
Sets the answer.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
answer | String | 答案(类型 `String`)。The answer. |
io/agentscope/core/rag/integration/dify/model/DifyResponse.java:194–196getPosition
public Integer getPosition()
获取 getPosition。
Returns the position.
Integerio/agentscope/core/rag/integration/dify/model/DifyResponse.java:198–200setPosition
public void setPosition(Integer position)
设置 setPosition。
Sets the position.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
position | Integer | position(类型 `Integer`)。The position. |
io/agentscope/core/rag/integration/dify/model/DifyResponse.java:202–204getWordCount
public Integer getWordCount()
获取 getWordCount。
Returns the word count.
Integerio/agentscope/core/rag/integration/dify/model/DifyResponse.java:206–208setWordCount
public void setWordCount(Integer wordCount)
设置 setWordCount。
Sets the word count.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
wordCount | Integer | word 数量(类型 `Integer`)。The word count. |
io/agentscope/core/rag/integration/dify/model/DifyResponse.java:210–212getTokens
public Integer getTokens()
获取令牌数。
Returns the tokens.
Integerio/agentscope/core/rag/integration/dify/model/DifyResponse.java:214–216setTokens
public void setTokens(Integer tokens)
设置令牌数。
Sets the tokens.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
tokens | Integer | 令牌数(类型 `Integer`)。The tokens. |
io/agentscope/core/rag/integration/dify/model/DifyResponse.java:218–220getKeywords
public List<String> getKeywords()
获取 getKeywords。
Returns the keywords.
List<String>io/agentscope/core/rag/integration/dify/model/DifyResponse.java:222–224setKeywords
public void setKeywords(List<String> keywords)
设置 setKeywords。
Sets the keywords.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
keywords | List<String> | keywords(类型 `List`)。The keywords. |
io/agentscope/core/rag/integration/dify/model/DifyResponse.java:226–228getIndexNodeId
public String getIndexNodeId()
获取索引节点标识。
Returns the index node id.
Stringio/agentscope/core/rag/integration/dify/model/DifyResponse.java:230–232setIndexNodeId
public void setIndexNodeId(String indexNodeId)
设置索引节点标识。
Sets the index node id.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
indexNodeId | String | 索引节点标识(类型 `String`)。The index node id. |
io/agentscope/core/rag/integration/dify/model/DifyResponse.java:234–236getIndexNodeHash
public String getIndexNodeHash()
获取 getIndexNodeHash。
Returns the index node hash.
Stringio/agentscope/core/rag/integration/dify/model/DifyResponse.java:238–240setIndexNodeHash
public void setIndexNodeHash(String indexNodeHash)
设置 setIndexNodeHash。
Sets the index node hash.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
indexNodeHash | String | 索引节点 Hash(类型 `String`)。The index node hash. |
io/agentscope/core/rag/integration/dify/model/DifyResponse.java:242–244getHitCount
public Integer getHitCount()
获取 getHitCount。
Returns the hit count.
Integerio/agentscope/core/rag/integration/dify/model/DifyResponse.java:246–248setHitCount
public void setHitCount(Integer hitCount)
设置 setHitCount。
Sets the hit count.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
hitCount | Integer | hit 数量(类型 `Integer`)。The hit count. |
io/agentscope/core/rag/integration/dify/model/DifyResponse.java:250–252getEnabled
public Boolean getEnabled()
获取已启用。
Returns the enabled.
Booleanio/agentscope/core/rag/integration/dify/model/DifyResponse.java:254–256setEnabled
public void setEnabled(Boolean enabled)
设置已启用。
Sets the enabled.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
enabled | Boolean | 已启用(类型 `Boolean`)。The enabled. |
io/agentscope/core/rag/integration/dify/model/DifyResponse.java:258–260getDisabledAt
public Long getDisabledAt()
获取已禁用 At。
Returns the disabled at.
Longio/agentscope/core/rag/integration/dify/model/DifyResponse.java:262–264setDisabledAt
public void setDisabledAt(Long disabledAt)
设置已禁用 At。
Sets the disabled at.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
disabledAt | Long | 已禁用 At(类型 `Long`)。The disabled at. |
io/agentscope/core/rag/integration/dify/model/DifyResponse.java:266–268getDisabledBy
public String getDisabledBy()
获取已禁用通过。
Returns the disabled by.
Stringio/agentscope/core/rag/integration/dify/model/DifyResponse.java:270–272setDisabledBy
public void setDisabledBy(String disabledBy)
设置已禁用通过。
Sets the disabled by.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
disabledBy | String | 已禁用通过(类型 `String`)。The disabled by. |
io/agentscope/core/rag/integration/dify/model/DifyResponse.java:274–276getStatus
public String getStatus()
获取状态。
Returns the status.
Stringio/agentscope/core/rag/integration/dify/model/DifyResponse.java:278–280setStatus
public void setStatus(String status)
设置状态。
Sets the status.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
status | String | 状态(类型 `String`)。The status. |
io/agentscope/core/rag/integration/dify/model/DifyResponse.java:282–284getCreatedBy
public String getCreatedBy()
获取已创建通过。
Returns the created by.
Stringio/agentscope/core/rag/integration/dify/model/DifyResponse.java:286–288setCreatedBy
public void setCreatedBy(String createdBy)
设置已创建通过。
Sets the created by.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
createdBy | String | 已创建通过(类型 `String`)。The created by. |
io/agentscope/core/rag/integration/dify/model/DifyResponse.java:290–292getCreatedAt
public Long getCreatedAt()
获取已创建 At。
Returns the created at.
Longio/agentscope/core/rag/integration/dify/model/DifyResponse.java:294–296setCreatedAt
public void setCreatedAt(Long createdAt)
设置已创建 At。
Sets the created at.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
createdAt | Long | 已创建 At(类型 `Long`)。The created at. |
io/agentscope/core/rag/integration/dify/model/DifyResponse.java:298–300getIndexingAt
public Long getIndexingAt()
获取 getIndexingAt。
Returns the indexing at.
Longio/agentscope/core/rag/integration/dify/model/DifyResponse.java:302–304setIndexingAt
public void setIndexingAt(Long indexingAt)
设置 setIndexingAt。
Sets the indexing at.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
indexingAt | Long | indexing At(类型 `Long`)。The indexing at. |
io/agentscope/core/rag/integration/dify/model/DifyResponse.java:306–308getCompletedAt
public Long getCompletedAt()
获取已完成 At。
Returns the completed at.
Longio/agentscope/core/rag/integration/dify/model/DifyResponse.java:310–312setCompletedAt
public void setCompletedAt(Long completedAt)
设置已完成 At。
Sets the completed at.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
completedAt | Long | 已完成 At(类型 `Long`)。The completed at. |
io/agentscope/core/rag/integration/dify/model/DifyResponse.java:314–316getError
public String getError()
获取错误。
Returns the error.
Stringio/agentscope/core/rag/integration/dify/model/DifyResponse.java:318–320setError
public void setError(String error)
设置错误。
Sets the error.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
error | String | 错误(类型 `String`)。The error. |
io/agentscope/core/rag/integration/dify/model/DifyResponse.java:322–324getStoppedAt
public Long getStoppedAt()
获取已停止 At。
Returns the stopped at.
Longio/agentscope/core/rag/integration/dify/model/DifyResponse.java:326–328setStoppedAt
public void setStoppedAt(Long stoppedAt)
设置已停止 At。
Sets the stopped at.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
stoppedAt | Long | 已停止 At(类型 `Long`)。The stopped at. |
io/agentscope/core/rag/integration/dify/model/DifyResponse.java:330–332getDocument
public DocumentInfo getDocument()
获取文档。
Returns the document.
DocumentInfoio/agentscope/core/rag/integration/dify/model/DifyResponse.java:334–336setDocument
public void setDocument(DocumentInfo document)
设置文档。
Sets the document.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
document | DocumentInfo | 文档(类型 `DocumentInfo`)。The document. |
io/agentscope/core/rag/integration/dify/model/DifyResponse.java:338–340