AS AgentScopeAPI 手册 / API Reference

MemoryItem

@JsonInclude(JsonInclude.Include.NON_NULL) public static class MemoryItem
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:142–272

记忆条目,在多次调用之间保存和恢复会话与记忆数据。位于 io.agentscope.core.memory.reme 包。核心成员包括 getWorkspaceId、setWorkspaceId、getMemoryId、setMemoryId、getMemoryType、setMemoryType。

Represents a single memory item in the response.

方法摘要Method Summary

方法Method说明Description
public String getWorkspaceId()
获取工作区标识。
Returns the workspace id.
public void setWorkspaceId(String workspaceId)
设置工作区标识。
Sets the workspace id.
public String getMemoryId()
获取记忆标识。
Returns the memory id.
public void setMemoryId(String memoryId)
设置记忆标识。
Sets the memory id.
public String getMemoryType()
获取记忆类型。
Returns the memory type.
public void setMemoryType(String memoryType)
设置记忆类型。
Sets the memory type.
public String getWhenToUse()
获取当到使用。
Returns the when to use.
public void setWhenToUse(String whenToUse)
设置当到使用。
Sets the when to use.
public String getContent()
获取内容。
Returns the content.
public void setContent(String content)
设置内容。
Sets the content.
public Double getScore()
获取分数。
Returns the score.
public void setScore(Double score)
设置分数。
Sets the score.
public String getTimeCreated()
获取时间已创建。
Returns the time created.
public void setTimeCreated(String timeCreated)
设置时间已创建。
Sets the time created.
public String getTimeModified()
获取 `getTimeModified`。
Returns the time modified.
public void setTimeModified(String timeModified)
设置 `setTimeModified`。
Sets the time modified.
public String getAuthor()
获取 `getAuthor`。
Returns the author.
public void setAuthor(String author)
设置 `setAuthor`。
Sets the author.
public Map<String, Object> getMetadata()
获取元数据。
Returns the metadata.
public void setMetadata(Map<String, Object> metadata)
设置元数据。
Sets the metadata.
public String getTarget()
获取目标。
Returns the target.
public void setTarget(String target)
设置目标。
Sets the target.
public String getReflectionSubject()
获取 `getReflectionSubject`。
Returns the reflection subject.
public void setReflectionSubject(String reflectionSubject)
设置 `setReflectionSubject`。
Sets the reflection subject.

方法详情Method Detail

getWorkspaceId

public String getWorkspaceId()

获取工作区标识。

Returns the workspace id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:177–179

setWorkspaceId

public void setWorkspaceId(String workspaceId)

设置工作区标识。

Sets the workspace id.

参数Parameters
名称Name类型Type说明Description
workspaceIdString工作区标识(类型 `String`)。The workspace id.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:181–183

getMemoryId

public String getMemoryId()

获取记忆标识。

Returns the memory id.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:185–187

setMemoryId

public void setMemoryId(String memoryId)

设置记忆标识。

Sets the memory id.

参数Parameters
名称Name类型Type说明Description
memoryIdString记忆标识(类型 `String`)。The memory id.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:189–191

getMemoryType

public String getMemoryType()

获取记忆类型。

Returns the memory type.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:193–195

setMemoryType

public void setMemoryType(String memoryType)

设置记忆类型。

Sets the memory type.

参数Parameters
名称Name类型Type说明Description
memoryTypeString记忆类型(类型 `String`)。The memory type.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:197–199

getWhenToUse

public String getWhenToUse()

获取当到使用。

Returns the when to use.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:201–203

setWhenToUse

public void setWhenToUse(String whenToUse)

设置当到使用。

Sets the when to use.

参数Parameters
名称Name类型Type说明Description
whenToUseString当到使用(类型 `String`)。The when to use.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:205–207

getContent

public String getContent()

获取内容。

Returns the content.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:209–211

setContent

public void setContent(String content)

设置内容。

Sets the content.

参数Parameters
名称Name类型Type说明Description
contentString内容(类型 `String`)。The content.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:213–215

getScore

public Double getScore()

获取分数。

Returns the score.

返回Returns Double
返回数值结果。Returns a numeric result.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:217–219

setScore

public void setScore(Double score)

设置分数。

Sets the score.

参数Parameters
名称Name类型Type说明Description
scoreDouble分数(类型 `Double`)。The score.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:221–223

getTimeCreated

public String getTimeCreated()

获取时间已创建。

Returns the time created.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:225–227

setTimeCreated

public void setTimeCreated(String timeCreated)

设置时间已创建。

Sets the time created.

参数Parameters
名称Name类型Type说明Description
timeCreatedString时间已创建(类型 `String`)。The time created.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:229–231

getTimeModified

public String getTimeModified()

获取 getTimeModified。

Returns the time modified.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:233–235

setTimeModified

public void setTimeModified(String timeModified)

设置 setTimeModified。

Sets the time modified.

参数Parameters
名称Name类型Type说明Description
timeModifiedString时间 Modified(类型 `String`)。The time modified.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:237–239

getAuthor

public String getAuthor()

获取 getAuthor。

Returns the author.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:241–243

setAuthor

public void setAuthor(String author)

设置 setAuthor。

Sets the author.

参数Parameters
名称Name类型Type说明Description
authorStringauthor(类型 `String`)。The author.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:245–247

getMetadata

public Map<String, Object> getMetadata()

获取元数据。

Returns the metadata.

返回Returns Map<String, Object>
返回映射。Returns map.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:249–251

setMetadata

public void setMetadata(Map<String, Object> metadata)

设置元数据。

Sets the metadata.

参数Parameters
名称Name类型Type说明Description
metadataMap<String, Object>元数据(类型 `Map`)。The metadata.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:253–255

getTarget

public String getTarget()

获取目标。

Returns the target.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:257–259

setTarget

public void setTarget(String target)

设置目标。

Sets the target.

参数Parameters
名称Name类型Type说明Description
targetString目标(类型 `String`)。The target.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:261–263

getReflectionSubject

public String getReflectionSubject()

获取 getReflectionSubject。

Returns the reflection subject.

返回Returns String
返回字符串结果。Returns a string.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:265–267

setReflectionSubject

public void setReflectionSubject(String reflectionSubject)

设置 setReflectionSubject。

Sets the reflection subject.

参数Parameters
名称Name类型Type说明Description
reflectionSubjectStringreflection 主题(类型 `String`)。The reflection subject.
源码Source io/agentscope/core/memory/reme/ReMeSearchResponse.java:269–271
基于官方固定版本源码静态生成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.