AS AgentScopeAPI 手册 / API Reference

Record

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

记录,与模型服务通信并返回生成或向量化结果。位于 io.agentscope.core.rag.integration.dify.model 包。核心成员包括 getSegment、setSegment、getScore、setScore。

A single retrieval record containing segment and score.

方法摘要Method Summary

方法Method说明Description
public Segment getSegment()
获取 `getSegment`。
Returns the segment.
public void setSegment(Segment segment)
设置 `setSegment`。
Sets the segment.
public Double getScore()
获取分数。
Returns the score.
public void setScore(Double score)
设置分数。
Sets the score.

方法详情Method Detail

getSegment

public Segment getSegment()

获取 getSegment。

Returns the segment.

返回Returns Segment
返回Segment。Returns segment.
源码Source io/agentscope/core/rag/integration/dify/model/DifyResponse.java:90–92

setSegment

public void setSegment(Segment segment)

设置 setSegment。

Sets the segment.

参数Parameters
名称Name类型Type说明Description
segmentSegmentsegment(类型 `Segment`)。The segment.
源码Source io/agentscope/core/rag/integration/dify/model/DifyResponse.java:94–96

getScore

public Double getScore()

获取分数。

Returns the score.

返回Returns Double
返回数值结果。Returns a numeric result.
源码Source io/agentscope/core/rag/integration/dify/model/DifyResponse.java:98–100

setScore

public void setScore(Double score)

设置分数。

Sets the score.

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